-
When placed inside the hierarchy Columns->Column[width="content"]->Columns, label is split on more lines even if there is enough space to accomodate it on one line. Note that removing the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @mperrando, yes this is due to how flexbox works in relation to Button. When writing Now, the minimum width of a Now, back to your problem, one possible workaround is to add this CSS rule: button {
white-space: nowrap
} which prevents button labels from wrapping. Bento-wise, this is something we may consider doing ourselves and limit |
Beta Was this translation helpful? Give feedback.
Hi @mperrando, yes this is due to how flexbox works in relation to Button. When writing
<Column width='content'>
we mean "whatever width fits the content and nothing more".Now, the minimum width of a
Button
is essentially the width of the longest word of the label (plus padding). This is because<button>
defaults to wrapping its content.Now, back to your problem, one possible workaround is to add this CSS rule:
which prevents button labels from wrapping.
Bento-wise, this is something we may consider doing ourselves and limit
Button
to have one-line labels. I'll discuss it with the team.