galene icon indicating copy to clipboard operation
galene copied to clipboard

Make (un)present button width dynamic

Open erdnaxe opened this issue 4 years ago • 2 comments

The present and unpresent button width is fixed to 5.8em. This is problematic as the content might need more space. By removing the width attribute, the element takes the width it requires.

image Screenshot before the modification: "Disable" is overflowing to the right the button.

erdnaxe avatar Aug 28 '21 16:08 erdnaxe

The point here is that we want the Enable and Disable buttons to have the same width, so that the interface doesn't move around when the user toggles.

jech avatar Aug 28 '21 18:08 jech

What could maybe be done is to always display "Enable" and "Disable" and then set the opacity. Doing this the button will always take the width of the longest word.

erdnaxe avatar Aug 28 '21 19:08 erdnaxe