fix(gallery): center text previews

This commit is contained in:
Vukašin Vojinović 2024-11-11 23:53:25 +01:00 committed by Jeremy Soller
parent 63126810b1
commit b7ef7f852f
3 changed files with 25 additions and 30 deletions

View file

@ -1198,7 +1198,7 @@ impl App {
children.push(section.into());
*/
widget::settings::view_column(children).into()
widget::column::with_children(children).into()
}
fn edit_history(&self) -> Element<Message> {
@ -1243,7 +1243,7 @@ impl App {
children.push(widget::text::body(fl!("no-history")).into());
}
widget::settings::view_column(children).into()
widget::column::with_children(children).into()
}
fn preview<'a>(
@ -1295,18 +1295,12 @@ impl App {
}
}
}
// View column has extra padding not wanted when not showing in context drawer
if context_drawer {
widget::settings::view_column(children).into()
} else {
widget::column::with_children(children).into()
}
widget::column::with_children(children).into()
}
fn settings(&self) -> Element<Message> {
// TODO: Should dialog be updated here too?
widget::settings::view_column(vec![widget::settings::section()
widget::column::with_children(vec![widget::settings::section()
.title(fl!("appearance"))
.add({
let app_theme_selected = match self.config.app_theme {