Skip to content

Commit e82c36d

Browse files
mmstickedfloreshz
authored andcommitted
improv: fix padding of list items
1 parent e484b37 commit e82c36d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/content.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ impl Content {
6565
}
6666

6767
pub fn list_view<'a>(&'a self, list: &'a List) -> Element<'a, Message> {
68-
let cosmic_theme::Spacing { space_xxs, .. } = theme::active().cosmic().spacing;
68+
let cosmic_theme::Spacing {
69+
space_xxs, space_m, ..
70+
} = theme::active().cosmic().spacing;
6971

7072
if self.tasks.is_empty() {
7173
return self.empty(list);
@@ -92,7 +94,7 @@ impl Content {
9294
.push(delete_button);
9395

9496
let button = widget::button(row)
95-
.padding([0, 18])
97+
.padding([space_xxs, space_m])
9698
.width(Length::Fill)
9799
.height(Length::Shrink)
98100
.style(button_style(false, true))

src/details.rs

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ impl Details {
185185
.add(
186186
widget::settings::item::builder(fl!("priority")).control(
187187
widget::segmented_control::horizontal(&self.priority_model)
188+
.button_alignment(Alignment::Center)
188189
.width(Length::Shrink)
189190
.on_activate(Message::PriorityActivate),
190191
),

0 commit comments

Comments
 (0)