Fix implementation of full_width and icon_position in button
This commit is contained in:
parent
196df1c378
commit
d72cd3795a
2 changed files with 20 additions and 15 deletions
|
@ -355,7 +355,7 @@ impl RenderOnce for ButtonLike {
|
|||
.group("")
|
||||
.flex_none()
|
||||
.h(self.size.height())
|
||||
.when_some(self.width, |this, width| this.w(width))
|
||||
.when_some(self.width, |this, width| this.w(width).justify_center())
|
||||
.rounded_md()
|
||||
.gap_1()
|
||||
.map(|this| match self.size {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue