Repository navigation
fix(console): keep Go limits chart headers from overflowing in long locales - #55054
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 72 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: |
There was a problem hiding this comment.
Looks good. I loaded the chart's table markup with the stylesheet from each branch in Chromium, using the real header translations at 1440, 919 and 390px. On the base branch, the de, fr, pl, ru and th headers are cut off at 919px and 390px, and the chart scrolls sideways at 919px in all of those locales and at 390px in all but pl. With this change, no header is cut off and nothing scrolls sideways at any of those widths. The only cost is shorter bars in long locales (ru at 919px: 383 → 310px). The console app's type check passes.
Public API is unchanged: this only touches CSS and markup in the console.
No concerns.


Issue for this PR
Closes #
Type of change
What does this PR do?
The Go limits chart used
table-layout: fixedwith a 14% usage column andnowrapheaders. Longer translations ("Miesięczne użycie", "Использование за месяц", Thai, …) spilled past the table edge, clipping the header and adding a horizontal scrollbar.Model column and number columns keep their widths; in long locales the bars get a little shorter. On phones, long-locale headers wrap to 2–3 lines.
How did you verify your code works?
Playwright against
vite dev, every locale, checking whether any header is clipped or the chart scrolls sideways:Screenshots / recordings
Desktop, Polish (919px)
Phone, Russian and German (390px)
Checklist