feat(segmented-button): add maximum_button_width property

This commit is contained in:
Michael Aaron Murphy 2024-03-08 14:02:20 +01:00 committed by Michael Murphy
parent 372fd4bab7
commit 2ccd3682b4
2 changed files with 7 additions and 1 deletions

View file

@ -47,6 +47,8 @@ where
let space_xs = theme.cosmic().space_xs();
SegmentedButton::new(model)
.minimum_button_width(76)
.maximum_button_width(250)
.button_height(44)
.button_padding([space_s, space_xs, space_s, space_xs])
.style(crate::theme::SegmentedButton::TabBar)