-
Notifications
You must be signed in to change notification settings - Fork 85
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
Fix vertical alignment of text in nccounterbubble #4200
Comments
As @nimishavijay and me found out this happens due to the font-family used. In our case it got fixed by using |
The font should be the same as used elsewhere, otherwise that will look off instead. How is the centering currently achieved? We can change the approach, either via vertical align, or padding, or however possible. |
So it seems to come down to system font rendering here... |
Should we enforce a specific font then here? |
also cc @marcoambrosini |
There were issues with using custom fonts in the past, if I remember correctly? My worry is that changing something like the font for this one element will both look out of place visually and not render correctly if that font is not supported/installed on the system. |
Who did the original screenshot? Could we gather more information about where it looks bad and try to find out why? |
@marcoambrosini this is on my windows 11 machine. It happens due to the system font used. Please read the conversation above. |
Yeah I've seen that but I was missing the OS info. Does that happen on all browsers? |
Yes, happens at least in Brave (Chromium based) and Firefox - so in the most important browsers. |
@nextcloud/designers what do we do here then? |
I would vote against changing the font. If there is a way to change the padding on only the problematic browsers/OSes/etc that would fix it, is that technically feasible? |
Maybe we can reorder the fonts? This might help for windows without any logic changes. |
This might be a good idea indeed. I just tested again and "Segoe UI" seems to be the culprit. sans-serif is the solution on Windows which is the next available font on windows (in our list). So maybe just remove Segoe UI or move it behind sans-serif? |
I opened #4271 for a test. With that everything looks good on my end: |
I fear this doesnt fix the problem unfortunately. |
Any update regarding this? At least in Talk at 100% it looks fine, and on the Vue components page as well? https://nextcloud-vue-components.netlify.app/#/Components/NcCounterBubble |
It depends on the system font used. It is broken on windows with segoe ui afaik |
@szaimen as far as you know or it is the case? :) Could you test on Windows to confirm/reproduce again with master or so we can close the issue? |
Indeed, we cannot fix this because Segoe UI is broken. Since we also decided to not use a different font, I will close this. |
As discussed with @jancborchardt and @nimishavijay, the text inside the counterbubble should be positioned right in the center and not a bit off.
See the following screenshot:
The text was updated successfully, but these errors were encountered: