Commit 789a9cc5 authored by Steven's avatar Steven

fix: padding left of list

parent a6be658f
......@@ -43,10 +43,8 @@ const List: React.FC<Props> = ({ kind, indent, children }: Props) => {
return React.createElement(
getListContainer(),
{
className: cn(
kind === ListNode_Kind.ORDERED ? "list-decimal" : kind === ListNode_Kind.UNORDERED ? "list-disc" : "list-none",
`pl-${2 * indent + 6}`,
),
className: cn(kind === ListNode_Kind.ORDERED ? "list-decimal" : kind === ListNode_Kind.UNORDERED ? "list-disc" : "list-none"),
style: { paddingLeft: `${(2 * indent + 6) * 4}px` },
...getAttributes(),
},
children.map((child, index) => {
......
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