fix(appearance): remove custom padding from reset button
This commit is contained in:
parent
cd5a8a701a
commit
da781d6fe1
1 changed files with 0 additions and 2 deletions
|
|
@ -1548,12 +1548,10 @@ pub fn reset_button() -> Section<crate::pages::Message> {
|
||||||
Section::default()
|
Section::default()
|
||||||
.descriptions(vec![fl!("reset-to-default").into()])
|
.descriptions(vec![fl!("reset-to-default").into()])
|
||||||
.view::<Page>(|_binder, page, section| {
|
.view::<Page>(|_binder, page, section| {
|
||||||
let spacing = &page.theme_builder.spacing;
|
|
||||||
let descriptions = §ion.descriptions;
|
let descriptions = §ion.descriptions;
|
||||||
if page.can_reset {
|
if page.can_reset {
|
||||||
button::standard(&*descriptions[0])
|
button::standard(&*descriptions[0])
|
||||||
.on_press(Message::Reset)
|
.on_press(Message::Reset)
|
||||||
.padding([spacing.space_xxs, spacing.space_xs])
|
|
||||||
.into()
|
.into()
|
||||||
} else {
|
} else {
|
||||||
horizontal_space(1).apply(Element::from)
|
horizontal_space(1).apply(Element::from)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue