mirror of https://github.com/usememos/memos.git
fix: padding left of list
This commit is contained in:
parent
a6be658f42
commit
789a9cc5a2
|
|
@ -43,10 +43,8 @@ const List: React.FC<Props> = ({ kind, indent, children }: Props) => {
|
||||||
return React.createElement(
|
return React.createElement(
|
||||||
getListContainer(),
|
getListContainer(),
|
||||||
{
|
{
|
||||||
className: cn(
|
className: cn(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",
|
style: { paddingLeft: `${(2 * indent + 6) * 4}px` },
|
||||||
`pl-${2 * indent + 6}`,
|
|
||||||
),
|
|
||||||
...getAttributes(),
|
...getAttributes(),
|
||||||
},
|
},
|
||||||
children.map((child, index) => {
|
children.map((child, index) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue