File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
ui/user/src/lib/components Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 5959 {@html toHTMLFromMarkdown (assistant .introductionMessage )}
6060 {/if }
6161 </div >
62- <div class =" flex gap-2 self-center" >
62+ <div class =" grid gap-2 self-center md:grid-cols-3 " >
6363 {#each assistant ?.starterMessages ?? [] as msg }
6464 <button
6565 class =" rounded-3xl border-2 border-blue p-5"
Original file line number Diff line number Diff line change 33 import { editor } from ' $lib/stores' ;
44 import { autoHeight } from ' $lib/actions/textarea.js' ;
55 import { ArrowUp , LoaderCircle } from ' lucide-svelte' ;
6+ import { tick } from ' svelte' ;
67
78 interface Props {
89 onFocus? : () => void ;
6263 }
6364
6465 value = ' ' ;
66+ await tick ();
67+ chat .dispatchEvent (new Event (' resize' ));
6568 }
6669
6770 async function onKey(e : KeyboardEvent ) {
Original file line number Diff line number Diff line change 218218
219219{#snippet messageContent ()}
220220 {#if msg .sent }
221- {content }
221+ {#each content .split (' \n ' ) as line }
222+ <p >{line }</p >
223+ {/each }
222224 {@render explain ()}
223225 {:else }
224226 {@html toHTMLFromMarkdown (content )}
You can’t perform that action at this time.
0 commit comments