Archived topic
Buttons group, "Fill Horizontal Space" make some buttons two lines high.
5 replies · Started by Stephen on July 11, 2021
I have a button group. When I check "Fill horizontal space", it makes some buttons two lines tall.
It's not just buttons that are two words, some two-word buttons just stretch properly. And it changes different buttons, depending on whether it's desktop, tablet, or mobile.
How can I prevent them from stacking words within the button?
Hi Stephen,
Can you link us to where we can see the issue?
Let me know :)
yes
Give this CSS a try:
.gb-button-wrapper-07a1b4f1 > .gb-button .gb-button-text {
white-space: nowrap;
}
Let me know how it works :)
Worked great. I thought that was going to just fix one button, but it prevented any buttons from doubling in tablet and mobile view too. Thanks.
Seems like that's not something that should happen, right? Seems like they should never double up unless user adds two lines in the button.
GB doesn't define this CSS property, so the behavior is by default.
I guess your idea makes sense for buttons :)