mirror of
https://github.com/usememos/memos.git
synced 2025-09-14 01:34:49 +08:00
fix: padding left of list
This commit is contained in:
parent
a6be658f42
commit
789a9cc5a2
1 changed files with 2 additions and 4 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue