mirror of
https://github.com/open-webui/open-webui
synced 2025-04-23 15:55:23 +00:00
enh: table view allow overflow
This commit is contained in:
parent
fa8d7bd9c6
commit
902f30c123
@ -34,7 +34,8 @@
|
|||||||
code={revertSanitizedResponseContent(token?.text ?? '')}
|
code={revertSanitizedResponseContent(token?.text ?? '')}
|
||||||
/>
|
/>
|
||||||
{:else if token.type === 'table'}
|
{:else if token.type === 'table'}
|
||||||
<table>
|
<div class="scrollbar-hidden relative whitespace-nowrap overflow-x-auto max-w-full">
|
||||||
|
<table class="w-full">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
{#each token.header as header, headerIdx}
|
{#each token.header as header, headerIdx}
|
||||||
@ -62,6 +63,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
{:else if token.type === 'blockquote'}
|
{:else if token.type === 'blockquote'}
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<svelte:self id={`${id}-${tokenIdx}`} tokens={token.tokens} />
|
<svelte:self id={`${id}-${tokenIdx}`} tokens={token.tokens} />
|
||||||
|
Loading…
Reference in New Issue
Block a user