Skip to content

Commit 42894e6

Browse files
Sine Jespersencableman
authored andcommitted
4472: add "pinned" banner to chat to make it useful to sustain information for users
1 parent 918f507 commit 42894e6

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
@@ -2337,7 +2337,15 @@
23372337
/>
23382338
</div>
23392339
</div>
2340-
2340+
<!-- PATCH ADD BANNERS TO CHAT INPUT -->
2341+
{#if !showCommands}
2342+
{#each $banners as banner}
2343+
{#if !banner.dismissible}
2344+
<Banner {banner} className="mx-4 my-2" />
2345+
{/if}
2346+
{/each}
2347+
{/if}
2348+
<!-- /PATCH ADD BANNERS TO CHAT INPUT -->
23412349
<div class=" pb-2">
23422350
<MessageInput
23432351
bind:this={messageInput}

0 commit comments

Comments
 (0)