Skip to content

Commit

Permalink
fix(prose): list indents
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <zhangtianli2006@163.com>
  • Loading branch information
ZTL-UwU committed Oct 14, 2024
1 parent 4ed5a92 commit 82fa587
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion components/content/ProseLi.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<template>
<li><slot /></li>
<li class="[&>ol]:!mt-2 [&>ul]:!mt-2">
<slot />
</li>
</template>
2 changes: 1 addition & 1 deletion components/content/ProseOl.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ol class="list-inside list-decimal [&:not(:first-child)]:mt-6 [&:not(:last-child)]:mb-6 [&>li:not(:first-child)]:mt-2">
<ol class="ml-6 list-decimal [&:not(:first-child)]:mt-6 [&:not(:last-child)]:mb-6 [&>li:not(:first-child)]:mt-2">
<slot />
</ol>
</template>

0 comments on commit 82fa587

Please sign in to comment.