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 {
|
impl Button {
|
||||||
pub fn new(id: impl Into<ElementId>) -> Self {
|
pub fn new(id: impl Into<ElementId>) -> Self {
|
||||||
Self {
|
Self {
|
||||||
base: div(),
|
base: div().flex_shrink_0(),
|
||||||
id: id.into(),
|
id: id.into(),
|
||||||
icon: None,
|
icon: None,
|
||||||
label: None,
|
label: None,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue