button: Add flex_shrink_0 to the base (#383)
If you want the button to be flexible, add `flex_shrink`.
This commit is contained in:
parent
d99c5246ee
commit
2dab196f68
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ impl From<Button> for AnyElement {
|
|||
impl Button {
|
||||
pub fn new(id: impl Into<ElementId>) -> Self {
|
||||
Self {
|
||||
base: div(),
|
||||
base: div().flex_shrink_0(),
|
||||
id: id.into(),
|
||||
icon: None,
|
||||
label: None,
|
||||
|
|
|
|||
Loading…
Reference in a new issue