Skip to content

Vantah v0.3.3

Choose a tag to compare

@github-actions github-actions released this 27 Jul 06:55

Button labels no longer get cut off in translation

The Stop connecting button had a fixed width of 180 px, which fits the English label but not
the longer translations. While the tunnel was coming up, Russian showed Прервать подключен…;
Ukrainian and German were clipped the same way. Buttons now use a minimum width instead of a fixed
one, so they grow to fit their label and stay the old size when the label is short.

The same problem was found on the Processes tab, where the Kill button and the Started
column header were clipped in Turkish, Polish, German, Spanish, Italian and Portuguese. Those
columns are now wide enough for the longest translation.

Guard against it happening again

A new test walks the visual tree of every screen in all 12 languages and compares what each label
was given with the width it actually needs, so a translation that no longer fits fails the build
instead of shipping.

Making that test meaningful required switching the headless UI tests to real Skia rendering with
the same Inter font the app uses: the stub font manager reports square glyphs — every character as
wide as the font size — so its measurements say nothing about what the screen will show.