Skip to content

Commit

Permalink
fix: Conform standalone button width to its container #2361 (#2390)
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok authored Sep 12, 2024
1 parent 5e9d234 commit bf50730
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/src/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ const
boxSizing: 'border-box',
overflowX: 'auto'
},
standaloneButton: {
display: 'flex',
alignItems: 'center',
}
}),
justifications: Dict<Fluent.Alignment> = {
start: 'start',
Expand Down Expand Up @@ -201,7 +205,7 @@ export const
)
},
XStandAloneButton = ({ model: m }: { model: Button }) => (
<div className={css.buttons}>
<div className={css.standaloneButton}>
<XButton key={m.name} model={m} />
</div>
),
Expand Down

0 comments on commit bf50730

Please sign in to comment.