fix: page list item padding and spacing

This commit is contained in:
Vukašin Vojinović 2024-08-17 13:25:09 +02:00 committed by GitHub
parent 6b2ff717c9
commit 83a4296b9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -893,7 +893,7 @@ impl SettingsApp {
let theme = cosmic::theme::active();
let padding = if self.core.is_condensed() {
0
theme.cosmic().space_xxs()
} else {
theme.cosmic().space_l()
};

View file

@ -91,9 +91,10 @@ pub fn page_list_item<'a, Message: 'static + Clone>(
.control(icon::from_name("go-next-symbolic").size(20))
.spacing(16)
.apply(container)
.padding([20, 24])
.padding([16, 14])
.style(theme::Container::List)
.apply(button)
.padding(0)
.style(theme::Button::Transparent)
.on_press(message)
.into()