Repository navigation
Shaders tab: the Amount slider stays put, and the shader tag follows a change - #325
Merged
elripalda merged 5 commits intoNov 19, 2026
Conversation
The line under the picture gained "Drag across the picture to compare." and the Amount hint named the shader, so both rewrapped on every pick and pushed the slider up or down. Each line now holds all its wordings in one spot with only one visible, and the Amount hint no longer names the shader.
…ison-phrasing-4ec744
Xarishark
marked this pull request as ready for review
November 19, 2026 16:33
Xarishark
marked this pull request as draft
November 19, 2026 17:54
Picking a shader redraws the game page through refreshGame, which
redrew the tabs, the buttons and the page body but never the lines under
the name, so the "{name} shader" tag kept the old shader until the game
was opened again. Those lines are now built by gameTitle, which both the
page and refreshGame use.
Xarishark
marked this pull request as ready for review
November 19, 2026 18:06
Xarishark
marked this pull request as draft
November 19, 2026 21:48
Xarishark
marked this pull request as ready for review
November 19, 2026 22:12
Xarishark
added a commit
to Xarishark/RecompLauncher
that referenced
this pull request
Nov 19, 2026
elripalda#325) No conflicts. elripalda#325's game title line and elripalda#319's save status line already sit together in main's refreshGame; this branch doesn't change app.js.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Two fixes on a game's Shaders tab.
The Amount slider no longer moves when you pick a shader. Two lines under the picture changed length:
The longer text wrapped onto another line and pushed the slider down by about 20px. Each of those lines now keeps every wording it can show in one spot, with only one visible, so the line is always as tall as its longest wording. The Amount line now says "How strong the shader is." for every shader (that wording was already in every language file); the shader's name is still on the picture and in the list.
The shader tag under the game's name follows a shader change. Picking a shader redraws the game page through
refreshGame, which redrew the tabs, the buttons and the page body but not the lines under the name, so the "{name} shader" tag kept showing the old shader until the game was opened again. Those lines are now built bygameTitle, which both the page andrefreshGameuse, so the other tags there (like "Your copy is set up") stay current the same way.How you tested it
npm testpasses (cargo teston Windows: 750 passed, 1 ignored)node --test tests/*.test.cjspasses (371/371, on Bazzite)npm run dev)New test:
tests/shader-chip.test.cjspicks another shader and checks that the redraw shows its tag under the name. It fails on the old code and passes with the fix.Not tried in the running launcher. For the slider, I checked the layout on a test page that uses the real
app.cssand the tab's markup: before the change the slider sat about 20px lower once a shader was picked; after it, it's at the same height either way.Checklist
recomplauncher.json: the schema and docs are updated too (it doesn't)