fix(ui): the window can be resized, and long translations wrap instead of being cut #234

Merged
HumanBean merged 1 commit from HumanBean/LongshotLauncher:fix/resizable-window-long-labels into main 2026-11-21 19:16:01 +00:00
Owner

In German the home's blue Update button reads "Aktualisi…", and the window can't be resized, so a translation that runs longer than the English has no room to go. This lets the window be resized and makes the parts that were cut wrap instead.

Fixes #226
Fixes #113

Summary

  • Update beside Play (#226): Play and Update are in a WrapPanel. Update stays beside Play when it fits (English) and goes under it when the word is too long for the 300 px column (German "Aktualisieren", French "Mettre à jour"). Before this, its text was trimmed.
  • Resizable window (#113): CanResize="True" with a minimum of 960x560. The window has no system frame (WindowDecorations="None"), so its own 5 px edges and 12 px corners call BeginResizeDrag. They're hidden while the window fills the screen, where the pages are still scaled up as before. F11 no longer turns resizing off when it leaves full screen. On a screen smaller than 1040x680 (a laptop scaled to 125%), the window now opens inside the work area.
  • What was cut at the smaller sizes in German now wraps: the "Add a build folder… / Build another version" links next to YOUR INSTANCES (they stack on the right), the upscaler rows' description lines in step 2 (they were NoWrap), the save editor's "Backed up first…" note, and the Saves page's "From Hookshot…" line, which was already cut at 1040 px in German.
  • On main, the rows' action buttons from the #113 screenshot already wrap (WrapPanel), and the footer's size line wraps, so neither needed changes.
  • tools/screenshots takes --lang <code> and --size <w>x<h>, so a screen can be checked in another language and at another window size (README).

Testing

  • python -I tests/test_launcher_core.py: 2601 checks passed. It has new checks for the resizable window (grips, minimum size, fit to screen, in PadChecks with the other window checks) and for Update wrapping under Play (InstanceFolderChecks).
  • LAUNCHER=$PWD python -I ../Tooling/tests/test_release.py: 42 tests, 3 failures (test_the_bump, test_the_next_stable, test_check_tag_against_the_published_releases). They fail the same way on an unchanged checkout of main, are about tags and releases, and are not touched here.
  • I rendered every scene in German with tools/screenshots at 1040x680, and the home, Saves, Storage, Settings, step 2, Ready, the save editor and the zip import at the 960x560 minimum (the home at 1400x860 too), and looked through them for cut text. In English, the home and step 2 look the same as before at 1040x680.
  • I started the launcher on Linux (CachyOS) with a temporary home to check that it opens. I couldn't drag the edges by hand from here, and I haven't tried it on Windows, so please try a resize on both before merging.

Screenshots

These are posted in the first comment, all German unless noted:

  • before-home-de.png (main): the Update button reads "Aktualisi…".
  • after-home-de.png: Update under Play, with the whole word.
  • after-home-en.png: English, with Update still beside Play.
  • after-home-de-960x560.png, after-settings-de-960x560.png, after-save-editor-de-960x560.png: the window at its minimum size, with nothing cut.

🤖 Generated with Claude Code

In German the home's blue Update button reads "Aktualisi…", and the window can't be resized, so a translation that runs longer than the English has no room to go. This lets the window be resized and makes the parts that were cut wrap instead. Fixes #226 Fixes #113 ## Summary - **Update beside Play** (#226): Play and Update are in a WrapPanel. Update stays beside Play when it fits (English) and goes under it when the word is too long for the 300 px column (German "Aktualisieren", French "Mettre à jour"). Before this, its text was trimmed. - **Resizable window** (#113): `CanResize="True"` with a minimum of 960x560. The window has no system frame (`WindowDecorations="None"`), so its own 5 px edges and 12 px corners call `BeginResizeDrag`. They're hidden while the window fills the screen, where the pages are still scaled up as before. F11 no longer turns resizing off when it leaves full screen. On a screen smaller than 1040x680 (a laptop scaled to 125%), the window now opens inside the work area. - **What was cut at the smaller sizes in German now wraps**: the "Add a build folder… / Build another version" links next to YOUR INSTANCES (they stack on the right), the upscaler rows' description lines in step 2 (they were `NoWrap`), the save editor's "Backed up first…" note, and the Saves page's "From Hookshot…" line, which was already cut at 1040 px in German. - On main, the rows' action buttons from the #113 screenshot already wrap (WrapPanel), and the footer's size line wraps, so neither needed changes. - `tools/screenshots` takes `--lang <code>` and `--size <w>x<h>`, so a screen can be checked in another language and at another window size (README). ## Testing - `python -I tests/test_launcher_core.py`: 2601 checks passed. It has new checks for the resizable window (grips, minimum size, fit to screen, in PadChecks with the other window checks) and for Update wrapping under Play (InstanceFolderChecks). - `LAUNCHER=$PWD python -I ../Tooling/tests/test_release.py`: 42 tests, 3 failures (`test_the_bump`, `test_the_next_stable`, `test_check_tag_against_the_published_releases`). They fail the same way on an unchanged checkout of main, are about tags and releases, and are not touched here. - I rendered every scene in German with `tools/screenshots` at 1040x680, and the home, Saves, Storage, Settings, step 2, Ready, the save editor and the zip import at the 960x560 minimum (the home at 1400x860 too), and looked through them for cut text. In English, the home and step 2 look the same as before at 1040x680. - I started the launcher on Linux (CachyOS) with a temporary home to check that it opens. I couldn't drag the edges by hand from here, and I haven't tried it on Windows, so please try a resize on both before merging. ## Screenshots These are posted in the first comment, all German unless noted: - `before-home-de.png` (main): the Update button reads "Aktualisi…". - `after-home-de.png`: Update under Play, with the whole word. - `after-home-en.png`: English, with Update still beside Play. - `after-home-de-960x560.png`, `after-settings-de-960x560.png`, `after-save-editor-de-960x560.png`: the window at its minimum size, with nothing cut. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(ui): the window can be resized, and long translations wrap instead of being cut
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 16s
9665e9367f
German's Aktualisieren no longer fits beside Play: the home's Play and Update
wrap, Update going under Play when its words are too long for the row (#226).
The window can be resized by its edges (it has no system frame) down to
960x560, and opens within a smaller screen; the pages lay out in the room they
have (#113). What was cut at the window's narrower sizes in German now wraps:
the instances' links, the upscaler rows' lines, the save editor's note, and
the Saves page's Hookshot line.

tools/screenshots takes --lang and --size, to see a screen in another language
and at another window size.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

Screenshots from tools/screenshots, in German unless noted.

Before (main), 1040x680: the Update button reads "Aktualisi…"
before

After, 1040x680: Update under Play, with the whole word
after

After, English, 1040x680: Update still beside Play
after en

After, at the 960x560 minimum: the home with a banner, step 2's upscaler rows and the save editor, with nothing cut
home 960
settings 960
save editor 960

Screenshots from `tools/screenshots`, in German unless noted. Before (main), 1040x680: the Update button reads "Aktualisi…" ![before](https://git.magicbean.dev/attachments/dc45b4e3-e3cb-466c-bae9-6675ae5e02bf) After, 1040x680: Update under Play, with the whole word ![after](https://git.magicbean.dev/attachments/a80cbf48-02b7-4e19-8c9f-e065c96bbea6) After, English, 1040x680: Update still beside Play ![after en](https://git.magicbean.dev/attachments/52b0c7cb-8ff5-4537-964f-c13351091458) After, at the 960x560 minimum: the home with a banner, step 2's upscaler rows and the save editor, with nothing cut ![home 960](https://git.magicbean.dev/attachments/d953ed79-0222-4f86-b175-370ae0728531) ![settings 960](https://git.magicbean.dev/attachments/5dbb1241-b3ff-481f-a8d2-eee226a885b3) ![save editor 960](https://git.magicbean.dev/attachments/feca61e7-dde8-46fb-8a7a-5cd609496173)
HumanBean deleted branch fix/resizable-window-long-labels 2026-11-21 19:16:01 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!234
No description provided.