Spaces:
Runtime error
Runtime error
Implemented message deletion without scrolling and removed unnecessary scroll-to-bottom logic.
Browse files35 unmodified lines36373839404178 unmodified lines12012112212312412512612712812913035 unmodified linesfunction deleteMessage(i: number) {messages = messages.filter((_, j) => j !== i);}function reset() {78 unmodified lines}}$: {if (messages) {scrollToBottom();}}</script><svelte:window on:keydown={onKeydown} />35 unmodified lines3637383940414278 unmodified lines12112212312412512635 unmodified linesfunction deleteMessage(i: number) {messages = messages.filter((_, j) => j !== i);// Don't scroll after deleting a message}function reset() {78 unmodified lines}}</script><svelte:window on:keydown={onKeydown} />
src/lib/components/Playground/Playground.svelte+1-5