mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-19 01:51:15 -05:00
refac
This commit is contained in:
1 parent
2a6e0da057
commit
6768f52aca
2 files changed
+21
-4
No files matched your search
@@ -73,7 +73,7 @@
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
.document-markdown :global(li) {
|
||||
margin: 0.125rem 0;
|
||||
margin-block: 0.125rem;
|
||||
}
|
||||
.document-markdown :global(blockquote) {
|
||||
margin: 0.75rem 0;
|
||||
|
||||
@@ -327,10 +327,10 @@
|
||||
{#if token.ordered}
|
||||
<ol start={token.start || 1} dir="auto">
|
||||
{#each token.items as item, itemIdx}
|
||||
<li class="text-start">
|
||||
<li dir="auto" class="text-start">
|
||||
{#if item?.task}
|
||||
<input
|
||||
class=" translate-y-[1px] -translate-x-1 flex-shrink-0"
|
||||
class=" translate-y-[1px] -translate-x-1 [&:dir(rtl)]:translate-x-1 flex-shrink-0"
|
||||
type="checkbox"
|
||||
disabled={markdown?.document ?? false}
|
||||
checked={item.checked}
|
||||
@@ -369,7 +369,12 @@
|
||||
{:else}
|
||||
<ul dir="auto" class="">
|
||||
{#each token.items as item, itemIdx}
|
||||
<li class="text-start {item?.task ? 'flex -translate-x-6.5 gap-3 ' : ''}">
|
||||
<li
|
||||
dir="auto"
|
||||
class="text-start {item?.task
|
||||
? 'flex -translate-x-6.5 [&:dir(rtl)]:translate-x-6.5 gap-3 '
|
||||
: ''}"
|
||||
>
|
||||
{#if item?.task}
|
||||
<input
|
||||
class="flex-shrink-0"
|
||||
@@ -647,3 +652,15 @@
|
||||
{console.log('Unknown token', token)}
|
||||
{/if}
|
||||
{/each}
|
||||
|
||||
<style>
|
||||
/* Reserve marker space on each item's start side, independently of the list's direction. */
|
||||
ul,
|
||||
ol {
|
||||
padding-inline: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-inline-start: 1.5em;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user