Skip to content

Easy Setup: a long label no longer pushes Choose over the copy box's border - #392

Merged
elripalda merged 2 commits into
elripalda:mainfrom
Xarishark:feat/choose-button-bug-9c5661
Nov 21, 2026
Merged

elripalda merged 2 commits into
elripalda:mainfrom
Xarishark:feat/choose-button-bug-9c5661

Conversation

@Xarishark

Copy link
Copy Markdown
Collaborator

What this changes

In Easy Setup, a game that needs one named file with a long label (like a phone game's "Your copy of … for Nokia Series 40 (128x128): …_s40v2.jar") pushed the Choose button out over the copy box's dashed border.

  • The box grows with its text. Launcher Support as a checklist with icons #350 let the box's text wrap but left the box at a fixed height:132px, so extra lines pushed the button row down past the border. The box now has a min-height with top and bottom padding. Its title and the line under it each show at most two lines. Same change in Big Picture (tv.css).
  • The label is shown once. A single named input used its label as the box's title and again on the line under it. The title is now always the game's name, with the label under it, the same as a game.kind copy.
  • The original game's name is back. A setup step that keeps the copy builds again without it (prepare.keeps_copy) #308 added const game = … inside stepsView's Game step, which hid the game passed in. So game.game was always missing and the copy box title fell back to the recomp's name (for example "Longshot" instead of "The Legend of Zelda: Ocarina of Time"). The inner variable is now copyRow.

How you tested it

On Bazzite (VM), from an LF checkout of this branch:

  • npm test passes (no Rust changed; not run)
  • node --test tests/*.test.cjs passes: 640 pass, including two new tests (the copy box is titled with the original game; a single named input's label shows once, under the game's name)
  • Tried it in the launcher (npm run dev): not run. Checked with tests/setup-steps-preview.html in headless Chrome instead, desktop and ?tv. Its new "Phone game · one named file with a long label" case shows the box with the game's name on top, the label once under it, and Choose inside the border. Longshot's box shows "The Legend of Zelda: Ocarina of Time" with its long label wrapped to two lines.

Checklist

  • One change per pull request
  • No version bump or patch notes (those are done at release time)
  • If it changes what developers can write in recomplauncher.json: the schema and docs are updated too (nothing there changes)

The box kept a fixed height after its text was allowed to wrap (elripalda#350), so a long input label pushed the button row onto the border. The text now wraps to two lines at most and the box grows past that, on desktop and Big Picture. The preview page has a case with a long label.
A single named input showed its label as the title and again under it. The box now has the game on top, like a game.kind copy. It also gets the original game's name again: a variable added in elripalda#308 hid the game passed in, so the title fell back to the recomp's name.
@Xarishark
Xarishark marked this pull request as ready for review November 21, 2026 08:56
@elripalda
elripalda merged commit fe83a06 into elripalda:main Nov 21, 2026
6 checks passed
@Xarishark
Xarishark deleted the feat/choose-button-bug-9c5661 branch November 23, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants