appuniversum / ember-appuniversum

Ember addon wrapping the appuniversum components.
https://appuniversum.github.io/ember-appuniversum
MIT License
14 stars 10 forks source link

Fix a `<AuToggleSwitch>` shrinking issue #380

Closed Windvis closed 1 year ago

Windvis commented 1 year ago

This change prevents the visual switch from shrinking below its minimum width.

Before: image

After: image

Supersedes #377

abeforgit commented 1 year ago

Not to be pedantic, but elements can't shrink below their minimum width anyway (or at least not in a flex context). The toggle just doesn't set any min-width at all. My original solution was also wrong (cause I misremembered how width, min-width and max-width interact), but it seems weird to me to disable any and all shrinking rather than just setting a minimum width