accordion: Add gap between title and icon. (#813)

This commit is contained in:
Jason Lee 2025-04-24 21:01:11 +08:00 committed by GitHub
parent f7c900d8eb
commit bbb267f2bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,6 +232,7 @@ impl RenderOnce for AccordionItem {
h_flex()
.id(self.index)
.justify_between()
.gap_3()
.map(|this| match self.size {
Size::XSmall => this.py_0().px_1p5(),
Size::Small => this.py_0p5().px_2(),