Skip to content

Commit

Permalink
fix: card label text size
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Feb 15, 2024
1 parent 8594126 commit 3a6dbc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/widget/cards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ where
if let Some(source) = show_less_icon {
show_less_children.push(icon(source).size(ICON_SIZE).into());
}
show_less_children.push(text(show_less_label).width(Length::Shrink).into());
show_less_children
.push(text(show_less_label).size(14).width(Length::Shrink).into());
show_less_children.push(
icon::from_name("pan-up-symbolic")
.size(ICON_SIZE)
Expand All @@ -129,7 +130,7 @@ where
)
},
clear_all_button: Element::from(
button(text(clear_all_label))
button(text(clear_all_label).size(14))
.style(cosmic::theme::Button::Text)
.width(Length::Shrink)
.on_press(on_clear_all)
Expand Down

0 comments on commit 3a6dbc2

Please sign in to comment.