fix: padding of list

pull/4634/head
Johnny 3 months ago committed by GitHub
parent 7632c52c0c
commit 2f6dc2b51f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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(),
}, },

Loading…
Cancel
Save