Skip to content

Commit feb5647

Browse files
Sine Jespersencableman
authored andcommitted
4472: add "pinned" banner to chat to make it useful to sustain information for users
1 parent 8920bf2 commit feb5647

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/lib/components/chat/Chat.svelte

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,15 @@
23852385
/>
23862386
</div>
23872387
</div>
2388-
2388+
<!-- PATCH ADD BANNERS TO CHAT INPUT -->
2389+
{#if !showCommands}
2390+
{#each $banners as banner}
2391+
{#if !banner.dismissible}
2392+
<Banner {banner} className="mx-4 my-2" />
2393+
{/if}
2394+
{/each}
2395+
{/if}
2396+
<!-- /PATCH ADD BANNERS TO CHAT INPUT -->
23892397
<div class=" pb-2">
23902398
<MessageInput
23912399
bind:this={messageInput}

0 commit comments

Comments
 (0)