Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ui_input: Only render number field border on focus (#46165)
Dinof84589323883
diff --git a/crates/ui_input/src/number_field.rs b/crates/ui_input/src/number_field.rsindex bb5f6e43247..6e01c48e672 100644--- a/crates/ui_input/src/number_field.rs+++ b/crates/ui_input/src/number_field.rs@@ -687,11 +687,11 @@ impl<T: NumberFieldType> RenderOnce for NumberField<T> {h_flex().flex_1()+ .h_full().track_focus(&focus_handle)- .border_1()- .border_color(cx.theme().colors().border_transparent).when(is_focused, |this| {- this.border_color(cx.theme().colors().border_focused)+ this.border_1()+ .border_color(cx.theme().colors().border_focused)}).child(editor).on_action::<menu::Confirm>({