From a407a2eeaa3a552a55b116d36f0be4d4f2cdd00d Mon Sep 17 00:00:00 2001 From: luxick Date: Fri, 3 Jul 2026 12:11:30 +0200 Subject: [PATCH] Hanging indent for todos --- assets/style.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/assets/style.css b/assets/style.css index 7126f67..0b83b7b 100644 --- a/assets/style.css +++ b/assets/style.css @@ -791,6 +791,15 @@ aside.sidebar:empty { display: none; } } .todo-rail .cm-editor { max-height: 40vh; } .todo-rail .cm-content { padding-right: var(--space-2); } +/* Hanging indent per task. Each todo (one logical line) starts flush-left and + its wrapped continuation lines are indented, so a new task is distinguishable + from a wrapped line even when it has no leading priority/date/x marker. The + indent is character-relative (ch) because it aligns to the monospace text, + not to the layout's spacing scale. */ +.todo-rail .cm-line { + padding-left: 2ch; + text-indent: -2ch; +} .todo-rail .todo-fallback { width: 100%; min-height: 10rem;