mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: padding of list
This commit is contained in:
@@ -44,8 +44,8 @@ const List: React.FC<Props> = ({ kind, indent, children }: Props) => {
|
|||||||
getListContainer(),
|
getListContainer(),
|
||||||
{
|
{
|
||||||
className: cn(
|
className: cn(
|
||||||
`list-inside ${kind === ListNode_Kind.ORDERED ? "list-decimal" : kind === ListNode_Kind.UNORDERED ? "list-disc" : "list-none"}`,
|
kind === ListNode_Kind.ORDERED ? "list-decimal" : kind === ListNode_Kind.UNORDERED ? "list-disc" : "list-none",
|
||||||
indent > 0 ? `pl-${2 * indent}` : "",
|
`pl-${2 * indent + 6}`,
|
||||||
),
|
),
|
||||||
...getAttributes(),
|
...getAttributes(),
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user