-
Notifications
You must be signed in to change notification settings - Fork 132
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 user list sentence count overflow #3119
base: dev
Are you sure you want to change the base?
Conversation
Thanks for taking time to work on this, @cblanken 👍 I saw in the issue page you mentioned that the problem comes from the browser default font size. Shouldn’t we set the default font size to 16px instead of setting it for the listSummary class specifically? My guess is that developers who worked on Tatoeba so far all used the default browser font size setting and built things with the assumption it would not change, so the same problem is likely to happen in other parts of the UI as well. |
You're right. There are probably some more font-size related issues, but I think that's more likely due to the static design of most of the app. I'll try setting the top-level default font size, but it's hard to say if some parts of the UI will be negatively affected without checking every page. Here's a quick grep of all the hard-coded font-sizes from the
|
Maybe @trang can give us some insight as she is more familiar with the existing CSS codebase. |
For what it's worth, I set the default font-size to 16px and clicked around the app for a while and didn't find anything out of the ordinary. |
This PR solves issue #3097
Hard-coding the base font size for the sentence list table to 16px is the simplest solution and appears to be the most common hard-coded font-size in the application. This keeps sentence list counts within the table boundary regardless of the user's browser configuration.
It would be nice to keep the font-size responsive but I think that would best be done in a larger redesign to address all the existing hard-coded font sizes.
Screenshots
Before Fix (with default browser font size set to 24px)
Before Fix (with default browser font size set to 20px)
With Fix