-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
Character names cut in italian #10576
Comments
@liamdebeasi would you want to take a peek at this one? Adding the account-wide drop power definitely crowds out the vault label, but I wonder if we could use container queries or something to scale fonts to fit inside their space. |
Sure! I'll take a look and send over some ideas for how we can solve this. |
The text overflow here is a bit tricky due to the nameplate's sizing constraints. I don't know if we'll be able to devise a solution that ensures all characters are visible and legible while also keeping the nameplate dimensions the same. You run into a couple potential issues by dynamically scaling the font size:
This could be somewhat mitigated by reducing the class font size by a fixed amount on each nameplate to maintain consistency.
This could be somewhat mitigated by enforcing a minimum font size. Alternatively, if we instead reduced the class font size by a fixed amount then this would not be an issue. Changing the font size from 20px to 18px for the class text is a quick fix. You could also maybe change the width of the nameplates on desktop. However, this likely will not resolve the issue for all scenarios. Additionally, this will almost certainly become an issue again when implementing font scaling features. A different user interface may be necessary to properly solve this problem. For example, the nameplate may need to be larger overall to allow for both longer and larger text. Rough idea of what that could look like: Other options I explored that did not work for various reasonsScale both width and height In order to preserve the proportions of the nameplate while showing all the text we'd need to scale both the width and the height. While this would ensure all text was visible the result looks a bit odd. Additionally, this may cause issues on smaller screens (such as small mobile phones) where it would be possible for the nameplate to extend beyond the bounds of the screen. As a result, I don't recommend this approach. Wrap Text Wrapping the text to the next line ensures that all the text is visible. However, the dimensions of the nameplate make this solution not practical. The class text would run into the player's title. We could change the height to accommodate, but then we run into the same problem as the previous approach. Just scaling the width This runs into the same issue as above where it would be possible for the nameplate to extend beyond the bounds of the screen. Additionally, the background image would not span the full width of the nameplate. |
Thanks for the research. Maybe for now we just need to bump the font size down to 18px for Italian. |
DIM Version
Versione 8.24.0.3444 (beta), pubblicata il 19/6/2024, 19:17:08
Browser Details
Opera GX and mobile app
OS Details
Windows 10 and Android
Describe the bug
Hunter and Vault names are cut in italian because their name is too long compared to english.
On mobile, depending on screen orientation:
Logs
The text was updated successfully, but these errors were encountered: