Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make (un)present button width dynamic #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erdnaxe
Copy link
Contributor

@erdnaxe erdnaxe commented Aug 28, 2021

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.

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.
@jech
Copy link
Owner

jech commented Aug 28, 2021

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.

@erdnaxe
Copy link
Contributor Author

erdnaxe commented Aug 28, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants