fix(app): change page padding if window is condensed

This commit is contained in:
Michael Aaron Murphy 2023-09-19 17:45:10 +02:00 committed by Michael Murphy
parent 454894d82f
commit fe9973090a

View file

@ -316,12 +316,14 @@ impl cosmic::Application for SettingsApp {
panic!("page without sub-pages or content");
};
let padding = if self.core.is_condensed() { 0 } else { 64 };
container(page_view)
.max_width(800)
.width(Length::Fill)
.apply(container)
.center_x()
.padding([0, 64])
.padding([0, padding])
.width(Length::Fill)
.apply(scrollable)
.into()