fix(app): change page padding if window is condensed
This commit is contained in:
parent
454894d82f
commit
fe9973090a
1 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue