From 7d4a0b256ecb8939add2179dd8100a8db0bedef1 Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Thu, 6 Aug 2026 20:01:23 +0000 Subject: [PATCH] fix: indent list levels by the step both exporters write Lists were padded 1.5rem per level on screen while the DOCX and ODT exports place item text at LIST_LEFT_STEP_CM (1.27cm) per level, so the editor disagreed with its own output and with Word and LibreOffice by 6.4mm on the first level, doubling with each nesting level. --- src/styles/editor.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/styles/editor.css b/src/styles/editor.css index ec428dd..0539128 100644 --- a/src/styles/editor.css +++ b/src/styles/editor.css @@ -397,7 +397,9 @@ .paper .tiptap ul, .paper .tiptap ol { - padding-left: 1.5rem; + /* One level = LIST_LEFT_STEP_CM (export/docx.ts, and the 1.27cm base the ODT list + styles use), so the on-screen item text sits where both exports place it. */ + padding-left: 1.27cm; margin-top: 0; /* Matches the exported List_20_* styles, which inherit Standard's zeroed margin. */ margin-bottom: 0;