feat(segmented-button): add maximum_button_width property
This commit is contained in:
parent
372fd4bab7
commit
2ccd3682b4
2 changed files with 7 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue