Skip to content

Commit c66ce09

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

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
@@ -2387,7 +2387,15 @@
23872387
/>
23882388
</div>
23892389
</div>
2390-
2390+
<!-- PATCH ADD BANNERS TO CHAT INPUT -->
2391+
{#if !showCommands}
2392+
{#each $banners as banner}
2393+
{#if !banner.dismissible}
2394+
<Banner {banner} className="mx-4 my-2" />
2395+
{/if}
2396+
{/each}
2397+
{/if}
2398+
<!-- /PATCH ADD BANNERS TO CHAT INPUT -->
23912399
<div class=" pb-2">
23922400
<MessageInput
23932401
bind:this={messageInput}

0 commit comments

Comments
 (0)