From 1e12dce9a6086ac9f068fb2f2f234d2fe63f999e Mon Sep 17 00:00:00 2001 From: sfarestam Date: Tue, 7 Apr 2026 11:13:23 +0200 Subject: [PATCH] fix(editor): match task list item spacing with bullet and ordered lists Task list items had margin-top/bottom: 0 and a custom line-height: 1.25, while regular list items used 0.125em margins and inherited line-height. This caused visible spacing differences between list types. Align both TipTap and Milkdown task list items to use the same 0.125em margins and inherited line-height as other list items. Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/apps/app/src/renderer/src/assets/main.css | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/apps/app/src/renderer/src/assets/main.css b/packages/apps/app/src/renderer/src/assets/main.css index 6d1cb094..fdd0cbdc 100644 --- a/packages/apps/app/src/renderer/src/assets/main.css +++ b/packages/apps/app/src/renderer/src/assets/main.css @@ -292,8 +292,8 @@ display: flex; align-items: flex-start; gap: 0.5rem; - margin-top: 0; - margin-bottom: 0; + margin-top: 0.125em; + margin-bottom: 0.125em; } .ProseMirror ul[data-type="taskList"] li > label { @@ -309,7 +309,6 @@ .ProseMirror ul[data-type="taskList"] li > div { flex: 1; - line-height: 1.25; } /* Task list checkbox styling (Milkdown GFM) */ @@ -323,8 +322,8 @@ align-items: flex-start; gap: 0.5rem; list-style: none; - margin-top: 0; - margin-bottom: 0; + margin-top: 0.125em; + margin-bottom: 0.125em; } .ProseMirror li[data-item-type="task"] > input[type="checkbox"] { @@ -338,7 +337,6 @@ .ProseMirror li[data-item-type="task"] > div, .ProseMirror li[data-item-type="task"] > p { flex: 1; - line-height: 1.25; } .ProseMirror li[data-item-type="task"] > span > p {