fix(appearance): remove custom padding from reset button

This commit is contained in:
Michael Aaron Murphy 2024-05-30 17:33:12 +02:00
parent cd5a8a701a
commit da781d6fe1
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -1548,12 +1548,10 @@ pub fn reset_button() -> Section<crate::pages::Message> {
Section::default()
.descriptions(vec![fl!("reset-to-default").into()])
.view::<Page>(|_binder, page, section| {
let spacing = &page.theme_builder.spacing;
let descriptions = &section.descriptions;
if page.can_reset {
button::standard(&*descriptions[0])
.on_press(Message::Reset)
.padding([spacing.space_xxs, spacing.space_xs])
.into()
} else {
horizontal_space(1).apply(Element::from)