fix(segmented_button): invalid tab offset when width is reduced by nav bar
This commit is contained in:
parent
2ccd3682b4
commit
26a7e6b0f9
2 changed files with 6 additions and 1 deletions
|
|
@ -25,6 +25,8 @@ where
|
|||
let space_xs = theme.cosmic().space_xs();
|
||||
|
||||
segmented_button::horizontal(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