documents and editor: typewriter room at both ends, open blocks scaled, a resize re-centers
CI / platforms (windows-latest) (push) Failing after 8s
CI / site (push) Successful in 25s
CI / crate (push) Failing after 11m6s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

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-12 08:54:41 -04:00
1 parent 508fee9d15
commit f102ea0b6c
6 files changed
+189 -14

No files matched your search

+6 -3
View File
@@ -16,7 +16,7 @@ use std::{ops::Range, path::Path, rc::Rc, sync::Arc, time::Duration};
use gpui::{
App, AppContext as _, Context, Entity, EventEmitter, FocusHandle, Focusable, ListAlignment,
ListState, Subscription, Task, Window,
ListState, Pixels, Subscription, Task, Window,
};
pub use attach::Attachment;
@@ -88,8 +88,10 @@ pub struct MarkdownDocument {
look: DocumentLook,
/// Typing in the open block, counted.
typed: u64,
/// The block, text, typing and height last centered.
centered: Option<(usize, u64, u64, u64)>,
/// 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])>,
focus: FocusHandle,
on_link: Option<OnLink>,
_subscriptions: Vec<Subscription>,
@@ -146,6 +148,7 @@ impl MarkdownDocument {
look: DocumentLook::default(),
typed: 0,
centered: None,
room: Pixels::ZERO,
focus,
on_link: None,
_subscriptions: subscriptions,