From 902f30c123b75f435378f7007fb906598de76065 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 14 Sep 2024 23:23:52 +0100 Subject: [PATCH] enh: table view allow overflow --- .../Messages/Markdown/MarkdownTokens.svelte | 48 ++++++++++--------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte b/src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte index b01e249ec..33538c9af 100644 --- a/src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte +++ b/src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte @@ -34,34 +34,36 @@ code={revertSanitizedResponseContent(token?.text ?? '')} /> {:else if token.type === 'table'} - - - - {#each token.header as header, headerIdx} - - {/each} - - - - {#each token.rows as row, rowIdx} +
+
- -
+ - {#each row ?? [] as cell, cellIdx} - {/each} - {/each} - -
+ {#each token.header as header, headerIdx} + - +
+ + + {#each token.rows as row, rowIdx} + + {#each row ?? [] as cell, cellIdx} + + + + {/each} + + {/each} + + + {:else if token.type === 'blockquote'}