Hanging indent for todos

This commit is contained in:
2026-07-03 12:11:30 +02:00
parent 75d6c4d430
commit a407a2eeaa
+9
View File
@@ -791,6 +791,15 @@ aside.sidebar:empty { display: none; }
} }
.todo-rail .cm-editor { max-height: 40vh; } .todo-rail .cm-editor { max-height: 40vh; }
.todo-rail .cm-content { padding-right: var(--space-2); } .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 { .todo-rail .todo-fallback {
width: 100%; width: 100%;
min-height: 10rem; min-height: 10rem;