list: Fix search input padding. (#981)
This change to fix #965 affected search input size. <img width="513" alt="image" src="https://github.com/user-attachments/assets/f8fce042-2f53-4dc3-a725-64a1b0ed6630" /> <img width="550" alt="image" src="https://github.com/user-attachments/assets/048e9ef8-da2d-4b9b-ad24-ccda55695c8b" /> <img width="517" alt="image" src="https://github.com/user-attachments/assets/f06f7e9a-bf30-4e01-a0aa-0a1db6b2c6e1" />
This commit is contained in:
parent
1055131ffe
commit
da0063cb57
1 changed files with 3 additions and 2 deletions
|
|
@ -595,8 +595,8 @@ where
|
||||||
this.child(
|
this.child(
|
||||||
div()
|
div()
|
||||||
.map(|this| match self.size {
|
.map(|this| match self.size {
|
||||||
Size::Small => this.py_0().px_1p5(),
|
Size::Small => this.px_1p5(),
|
||||||
_ => this.py_1().px_2(),
|
_ => this.px_2(),
|
||||||
})
|
})
|
||||||
.border_b_1()
|
.border_b_1()
|
||||||
.border_color(cx.theme().border)
|
.border_color(cx.theme().border)
|
||||||
|
|
@ -608,6 +608,7 @@ where
|
||||||
.text_color(cx.theme().muted_foreground),
|
.text_color(cx.theme().muted_foreground),
|
||||||
)
|
)
|
||||||
.cleanable()
|
.cleanable()
|
||||||
|
.p_0()
|
||||||
.appearance(false),
|
.appearance(false),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue