settings ui: Add some UX adjustments (#39615)

Release Notes:

- N/A
This commit is contained in:
Danilo Leal
2025-10-06 12:12:35 -03:00
committed by GitHub
parent bc39ed2575
commit db5b1a31b5
10 changed files with 93 additions and 62 deletions
+2 -2
View File
@@ -417,7 +417,6 @@ impl<T: NumericStepperType> RenderOnce for NumericStepper<T> {
})
.child(
h_flex()
.h_8()
.min_w_16()
.w_full()
.border_1()
@@ -426,9 +425,10 @@ impl<T: NumericStepperType> RenderOnce for NumericStepper<T> {
.child(match *self.mode.read(cx) {
NumericStepperMode::Read => h_flex()
.id("numeric_stepper_label")
.px_1()
.flex_1()
.justify_center()
.child(Label::new((self.format)(&self.value)).mx_3())
.child(Label::new((self.format)(&self.value)))
.when_some(tab_index.as_mut(), |this, tab_index| {
*tab_index += 1;
this.tab_index(*tab_index - 1).focus(|style| {