From 2f6dc2b51f2059d1707895ca9f133cc51cac3ad7 Mon Sep 17 00:00:00 2001 From: Johnny Date: Thu, 10 Apr 2025 23:06:14 +0800 Subject: [PATCH] fix: padding of list --- web/src/components/MemoContent/List.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/MemoContent/List.tsx b/web/src/components/MemoContent/List.tsx index 14b9373a..b0869a2b 100644 --- a/web/src/components/MemoContent/List.tsx +++ b/web/src/components/MemoContent/List.tsx @@ -44,8 +44,8 @@ const List: React.FC = ({ kind, indent, children }: Props) => { getListContainer(), { className: cn( - `list-inside ${kind === ListNode_Kind.ORDERED ? "list-decimal" : kind === ListNode_Kind.UNORDERED ? "list-disc" : "list-none"}`, - indent > 0 ? `pl-${2 * indent}` : "", + kind === ListNode_Kind.ORDERED ? "list-decimal" : kind === ListNode_Kind.UNORDERED ? "list-disc" : "list-none", + `pl-${2 * indent + 6}`, ), ...getAttributes(), },