mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 05:38:41 +00:00
Update MarkdownTokens.svelte
More dir="auto" to auto direction on RTL
This commit is contained in:
parent
e7560a5acf
commit
0b1e30988a
@ -76,7 +76,7 @@
|
|||||||
{#if token.type === 'hr'}
|
{#if token.type === 'hr'}
|
||||||
<hr class=" border-gray-100 dark:border-gray-850" />
|
<hr class=" border-gray-100 dark:border-gray-850" />
|
||||||
{:else if token.type === 'heading'}
|
{:else if token.type === 'heading'}
|
||||||
<svelte:element this={headerComponent(token.depth)}>
|
<svelte:element this={headerComponent(token.depth)} dir="auto">
|
||||||
<MarkdownInlineTokens id={`${id}-${tokenIdx}-h`} tokens={token.tokens} {onSourceClick} />
|
<MarkdownInlineTokens id={`${id}-${tokenIdx}-h`} tokens={token.tokens} {onSourceClick} />
|
||||||
</svelte:element>
|
</svelte:element>
|
||||||
{:else if token.type === 'code'}
|
{:else if token.type === 'code'}
|
||||||
@ -176,7 +176,7 @@
|
|||||||
{#if token.ordered}
|
{#if token.ordered}
|
||||||
<ol start={token.start || 1}>
|
<ol start={token.start || 1}>
|
||||||
{#each token.items as item, itemIdx}
|
{#each token.items as item, itemIdx}
|
||||||
<li dir="auto">
|
<li dir="auto" class="text-start">
|
||||||
{#if item?.task}
|
{#if item?.task}
|
||||||
<input
|
<input
|
||||||
class=" translate-y-[1px] -translate-x-1"
|
class=" translate-y-[1px] -translate-x-1"
|
||||||
@ -208,7 +208,7 @@
|
|||||||
{:else}
|
{:else}
|
||||||
<ul>
|
<ul>
|
||||||
{#each token.items as item, itemIdx}
|
{#each token.items as item, itemIdx}
|
||||||
<li dir="auto">
|
<li dir="auto" class="text-start">
|
||||||
{#if item?.task}
|
{#if item?.task}
|
||||||
<input
|
<input
|
||||||
class=" translate-y-[1px] -translate-x-1"
|
class=" translate-y-[1px] -translate-x-1"
|
||||||
@ -239,7 +239,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
{/if}
|
{/if}
|
||||||
{:else if token.type === 'details'}
|
{:else if token.type === 'details'}
|
||||||
<Collapsible title={token.summary} attributes={token?.attributes} className="w-full space-y-1">
|
<Collapsible title={token.summary} attributes={token?.attributes} className="w-full space-y-1" dir="auto">
|
||||||
<div class=" mb-1.5" slot="content">
|
<div class=" mb-1.5" slot="content">
|
||||||
<svelte:self
|
<svelte:self
|
||||||
id={`${id}-${tokenIdx}-d`}
|
id={`${id}-${tokenIdx}-d`}
|
||||||
|
Loading…
Reference in New Issue
Block a user