diff --git a/crates/op-editor-ui/src/widgets/component_browser_kits.rs b/crates/op-editor-ui/src/widgets/component_browser_kits.rs index 8755030d9..9acb8e5c3 100644 --- a/crates/op-editor-ui/src/widgets/component_browser_kits.rs +++ b/crates/op-editor-ui/src/widgets/component_browser_kits.rs @@ -707,7 +707,7 @@ mod tests { .round_fills .iter() .any(|(fill, radius, color)| *fill == dropdown - && *radius == 4.0 + && *radius == 6.0 && *color == expected), "pressed kit dropdown should paint shared pressed feedback" ); diff --git a/crates/op-editor-ui/src/widgets/property_panel_code_tests.rs b/crates/op-editor-ui/src/widgets/property_panel_code_tests.rs index a0d66f312..de09d839c 100644 --- a/crates/op-editor-ui/src/widgets/property_panel_code_tests.rs +++ b/crates/op-editor-ui/src/widgets/property_panel_code_tests.rs @@ -239,8 +239,8 @@ fn idle_bundle_hover_paints_neutral_feedback() { .iter() .any(|(r, c)| rect_eq(*r, bundle_rect) && !color_eq(*c, theme.muted) - && c.a > theme.button_hover.a + 0.01), - "hovered borderless Export AI Bundle should paint a visible wash over the transparent button" + && color_eq(*c, theme.button_hover)), + "hovered borderless Export AI Bundle should paint jian Ghost's button_hover wash over the transparent button" ); } diff --git a/crates/op-editor-ui/src/widgets/property_panel_text.rs b/crates/op-editor-ui/src/widgets/property_panel_text.rs index 6681a29a5..2db412776 100644 --- a/crates/op-editor-ui/src/widgets/property_panel_text.rs +++ b/crates/op-editor-ui/src/widgets/property_panel_text.rs @@ -134,6 +134,11 @@ pub fn text_action_rects(x0: f32, y: f32, usable_w: f32) -> Vec<(PropertyPanelAc + FAMILY_ROW_GAP + INPUT_HEIGHT + 6.0 + // The 行高/字间距 caption row sits between the weight/size row and the + // LH/LS inputs — paint_text_section + push_text_input_rects both + // include it, so the align-row hit anchor must too (else the align + // ToggleGroup hit rects drift 14px above where they paint). + + LH_LS_LABEL_H + INPUT_HEIGHT + 8.0 + ALIGN_LABEL_H;