Skip to content

UI incorrectly displayed - #1386

Open
midaksh wants to merge 2 commits into
godotengine:masterfrom
midaksh:fix/UI-font
Open

UI incorrectly displayed#1386
midaksh wants to merge 2 commits into
godotengine:masterfrom
midaksh:fix/UI-font

Conversation

@midaksh

@midaksh midaksh commented Jun 29, 2026

Copy link
Copy Markdown

Closes #1237

The navbar layout broke when switching to languages with longer words (e.g. Ukrainian, Russian). Nav links wrapped to a second line and the Donate button was clipped or hidden.

Changes: assets/css/header.css

  • white-space: nowrap on all nav links, prevents any translated text from wrapping inside a link, regardless of language
  • clamp() on font-size and padding — font and spacing scale down proportionally on tighter viewports instead of staying fixed.
  • fit-content pill width — the navbar pill now sizes to its content and stays centered with margin-inline: auto, so it expands equally on both sides instead of overflowing to the right.
  • Symmetric container padding — all outer inset consolidated on the container equally (left = right), removing previously inconsistent per-element offsets.

Below are some images:

English (Before)
Screenshot 2026-06-30 at 01 00 07
Russian
Screenshot 2026-06-30 at 00 58 55
Ukrainian
Screenshot 2026-06-30 at 00 59 09

@Calinou Calinou added bug topic:theme Issues and PRs related to styling and scripts of the frontend topic:i18n labels Jun 30, 2026
@midaksh

midaksh commented Jul 8, 2026

Copy link
Copy Markdown
Author

Hey @Calinou, is there any feedback for this, or anything else that needs to be done?

@midaksh

midaksh commented Jul 18, 2026

Copy link
Copy Markdown
Author

Hey @Calinou if there are some issues here, I can tak this to a draft PR else it is open for review let me know if everything is fine.
Thanks

@midaksh

midaksh commented Aug 22, 2026

Copy link
Copy Markdown
Author

Hey @Calinou should I close the PR ?

@JohnVeness

Copy link
Copy Markdown
Collaborator

I'm not @Calinou, but can you show some before images for Russian and Ukrainian, to better show what you've changed?

@midaksh

midaksh commented Aug 27, 2026

Copy link
Copy Markdown
Author

Hi @Calinou, below are the attached images for the before comparision, and the output result for the same is already in the above description.

Ukrainian Before:
Screenshot 2026-08-27 at 15 47 13

Same goes for Russian:
Screenshot 2026-08-27 at 15 50 58

As you can clearly see the menu/header bar text is not aligned as mentioned in #1237

This is a fix for that, let me know if there is something else that you need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug topic:i18n topic:theme Issues and PRs related to styling and scripts of the frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI incorrectly displayed with long text (e.g., Russian/Cyrillic)

3 participants