Documents: an open block keeps its look
CI / platforms (ubuntu-24.04) (push) Waiting to run
CI / platforms (windows-latest) (push) Failing after 2s
CI / crate (push) Failing after 2s
CI / site (push) Successful in 24s

The open field sits in the closed block's frame at its size, line
height and weight; headings keep their step. Code and math keep their
panel. Typewriter centering also keys on the ends' room, so a block
opened at the same height still centers.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-16 14:01:58 -04:00
1 parent cdc5ce8247
commit bff7ebcd64
7 files changed
+150 -34

No files matched your search

+1 -1
View File
@@ -117,7 +117,7 @@ pub struct MarkdownDocument {
/// Typewriter room past each end of the list.
room: Pixels,
/// The block, text, typing and heights last centered.
centered: Option<(usize, u64, u64, [u64; 2])>,
centered: Option<(usize, u64, u64, [u64; 3])>,
focus: FocusHandle,
/// A secondary press took focus.
pointing: bool,