feat(editor): 66ch measure + heading spacing (#77 follow-up)

- editor text centers at reading.css --measure 66ch (zero-advance × 66
  + 2×24pt padding), scroll view still fills the column
- headings get paragraphSpacingBefore 75 / after 30 (CSS 90/30 minus
  the visible blank separator's ~15pt)
This commit is contained in:
AlexKucera committed 2026-10-08 13:51:07 +02:00
1 parent 3934b10ec5
commit 46441438a2
3 files changed
+21 -2

No files matched your search

+5
View File
@@ -61,7 +61,12 @@ struct PostEditorView: View {
stateBox: readingState,
)
} else {
// #77: editor measure — reading.css --measure 66ch. The scroll
// view fills the column; the text container centers at the
// measured width so wide columns match the reading surface.
editingSurface
.frame(maxWidth: ProseTypography.measureWidth)
.frame(maxWidth: .infinity)
}
}
.frame(maxWidth: .infinity, maxHeight: .infinity)