elements icon indicating copy to clipboard operation
elements copied to clipboard

Buttons no longer squish when the amount of space is limited

Open a-stewart opened this issue 4 months ago • 4 comments

Previously if you had a button and you forced it into a space that was too small it would compress, giving a bit of flexibility.

Image

With the most most recent version however, this compression no longer seems to work.

Image

The button group compression was reverted due to #472 so I was looking to try and resolve that - but I noticed now that the main button has also been reverted.

This seems like a regression for UIs that are already using buttons?

a-stewart avatar Sep 02 '25 15:09 a-stewart

I think I have a solution that allows for squishing of both, and preserves the outline.

Image

I'll create a PR.

a-stewart avatar Sep 02 '25 15:09 a-stewart

I'm already writing my answer, but this would be the best solution.

bendera avatar Sep 02 '25 15:09 bendera

@a-stewart Something is still wrong.

Image

Differences:

Image

bendera avatar Sep 04 '25 20:09 bendera

Urgh - no - that's not what I was seeing.

Let me check I am fully synced and then test.

For the icon only buttons - it is likely the case that the padding needs a bit of tweaking to match the min-width that was there.

For the Left <> Right - that is weird - I'll test that.

a-stewart avatar Sep 04 '25 21:09 a-stewart