From 5e302866ce15b7585cc3e5c7e1745b7987dce0f2 Mon Sep 17 00:00:00 2001 From: Floyd Wang Date: Mon, 8 Sep 2025 13:29:54 +0800 Subject: [PATCH] inspector: Improve UI details (#1217) --- crates/ui/src/inspector.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/ui/src/inspector.rs b/crates/ui/src/inspector.rs index 104f093a..da07fecb 100644 --- a/crates/ui/src/inspector.rs +++ b/crates/ui/src/inspector.rs @@ -481,6 +481,7 @@ fn render_inspector( v_flex() .id("inspector") + .font_family(".SystemUIFont") .size_full() .bg(cx.theme().background) .border_l_1() @@ -508,7 +509,6 @@ fn render_inspector( .selected(inspector.is_picking()) .small() .ghost() - .cursor_pointer() .on_click(cx.listener(|this, _, window, _| { this.start_picking(); window.refresh(); @@ -521,7 +521,6 @@ fn render_inspector( .icon(IconName::Close) .small() .ghost() - .cursor_pointer() .on_click(|_, window, cx| { window.dispatch_action(Box::new(ToggleInspector), cx); }), @@ -531,17 +530,19 @@ fn render_inspector( v_flex() .flex_1() .p_3() - .gap_3() + .gap_y_3() .text_sm() .when_some(source_location, |this, source_location| { this.child( h_flex() - .gap_1() + .gap_x_2() .text_sm() .child( Link::new("source-location") .href(format!("file://{}", source_location)) - .child(source_location.clone()), + .child(source_location.clone()) + .flex_1() + .overflow_x_hidden(), ) .child(Clipboard::new("copy-source-location").value(source_location)), )