Unverified Commit 2f6dc2b5 authored by Johnny's avatar Johnny Committed by GitHub

fix: padding of list

parent 7632c52c
...@@ -44,8 +44,8 @@ const List: React.FC<Props> = ({ kind, indent, children }: Props) => { ...@@ -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(),
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment