Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: padding of list

Johnny2f6dc2b51f20
diff --git a/web/src/components/MemoContent/List.tsx b/web/src/components/MemoContent/List.tsx
index 14b9373ae..b0869a2b7 100644
--- a/web/src/components/MemoContent/List.tsx
+++ b/web/src/components/MemoContent/List.tsx
@@ -44,8 +44,8 @@ const List: React.FC<Props> = ({ 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(),
},