From da0063cb576255b0f5cf7057873207b191be6f6f Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Wed, 18 Jun 2025 14:07:21 +0800 Subject: [PATCH] list: Fix search input padding. (#981) This change to fix #965 affected search input size. image image image --- crates/ui/src/list/list.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui/src/list/list.rs b/crates/ui/src/list/list.rs index bf62a0cb..96507eb0 100644 --- a/crates/ui/src/list/list.rs +++ b/crates/ui/src/list/list.rs @@ -595,8 +595,8 @@ where this.child( div() .map(|this| match self.size { - Size::Small => this.py_0().px_1p5(), - _ => this.py_1().px_2(), + Size::Small => this.px_1p5(), + _ => this.px_2(), }) .border_b_1() .border_color(cx.theme().border) @@ -608,6 +608,7 @@ where .text_color(cx.theme().muted_foreground), ) .cleanable() + .p_0() .appearance(false), ), )