-
Notifications
You must be signed in to change notification settings - Fork 814
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
Width of buttons is not even using fr #4962
Comments
If the total width isn't divisible by 3, how would it be possible for the buttons to be equal? Look closer at your 33% example and you'll see the middle button is narrower than the others. |
OK, but it's strange that 33% and 1 fr in this case works different, shouldn't it be the same? |
3 x 33% doesn't add up to 100%. You could set it to 33.33333333333% but it is always going to suffer from rounding error, compared to fr units. |
Alright, so shouldn't it be possible to do just |
@matkudela We don't support fractions as values, and neither does browser CSS unless you use |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
In my project I encountered a problem in width of buttons. My example:
textual_bug_percent.py
textual_bug_percent.scss
Buttons with 1fr width:
Buttons with 33% width:
As you can see the widths on 1 fr are slightly different, first button is narrower than others, in my opinion they should be even.
The text was updated successfully, but these errors were encountered: