Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
inspector_ui: Split out size from bounds string (#39703)
Bartosz Kaszubowskid6b1801fb3c2
diff --git a/crates/inspector_ui/src/div_inspector.rs b/crates/inspector_ui/src/div_inspector.rsindex 5f0786c885b..da99c5b92c1 100644--- a/crates/inspector_ui/src/div_inspector.rs+++ b/crates/inspector_ui/src/div_inspector.rs@@ -576,7 +576,12 @@ fn render_layout_state(inspector_state: &DivInspectorState, cx: &App) -> Div {.child(div().text_ui(cx)- .child(format!("Bounds: {}", inspector_state.bounds)),+ .child(format!(+ "Bounds: ⌜{} - {}⌟",+ inspector_state.bounds.origin,+ inspector_state.bounds.bottom_right()+ ))+ .child(format!("Size: {}", inspector_state.bounds.size)),).child(div()