Skip to content

Commit a4e8288

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

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
@@ -2439,7 +2439,15 @@
24392439
/>
24402440
</div>
24412441
</div>
2442-
2442+
<!-- PATCH ADD BANNERS TO CHAT INPUT -->
2443+
{#if !showCommands}
2444+
{#each $banners as banner}
2445+
{#if !banner.dismissible}
2446+
<Banner {banner} className="mx-4 my-2" />
2447+
{/if}
2448+
{/each}
2449+
{/if}
2450+
<!-- /PATCH ADD BANNERS TO CHAT INPUT -->
24432451
<div class=" pb-2">
24442452
<MessageInput
24452453
bind:this={messageInput}

0 commit comments

Comments
 (0)