Skip to content

Commit 9ec7381

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/lib/components/chat/Chat.svelte

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2515,6 +2515,16 @@
25152515
</div>
25162516
</div>
25172517

2518+
<!-- PATCH ADD BANNERS TO CHAT INPUT -->
2519+
{#if !showCommands}
2520+
{#each $banners as banner}
2521+
{#if !banner.dismissible}
2522+
<Banner {banner} className="mx-4 my-2" />
2523+
{/if}
2524+
{/each}
2525+
{/if}
2526+
<!-- /PATCH ADD BANNERS TO CHAT INPUT -->
2527+
25182528
<div class=" pb-2 z-10">
25192529
<MessageInput
25202530
bind:this={messageInput}

0 commit comments

Comments
 (0)