Skip to content

Commit

Permalink
can't easily pass props to message input
Browse files Browse the repository at this point in the history
  • Loading branch information
gsovereignty committed Apr 19, 2024
1 parent 44bc078 commit d789eff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/ChatLayout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<div class="flex-1">
<div class="h-screen flex-col">
<div class="h-5/6 bg-white dark:bg-slate-900 overflow-x-hidden overflow-y-scroll no-scrollbar"><slot /></div>
<div class="h-1/6"><MessageInput /></div>
<div class="h-1/6"><slot name="input" /></div>
</div>
</div>
<div class="hidden flex-1 lg:block">
Expand Down
2 changes: 2 additions & 0 deletions src/lib/views/messages/Messages.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import { derived, writable, type Writable } from 'svelte/store';
import RenderKind1 from './RenderKind1.svelte';
import RenderKind1AsThreadHead from './RenderKind1AsThreadHead.svelte';
import MessageInput from '@/components/MessageInput.svelte';
//take current threadparentID (or root) and create a derived store of all events. derive antoher one to pipe it through sorting/filtering store.
//
Expand Down Expand Up @@ -144,4 +145,5 @@
<Coracle />
{/if}
</slot>
<div slot="input" class="h-full"><MessageInput /></div>
</ChatLayout>

0 comments on commit d789eff

Please sign in to comment.