Repository navigation
Make prompt text bigger and let players resize it - #3
Merged
Merged
Conversation
The composer text now starts at 20px instead of 14px. Two buttons in the composer footer step it between 14px and 32px, and the choice persists in localStorage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
The prompt box is what you look at for the whole game, and its text was 14px. It was hard to read, and players had no way to make it bigger.
Fix
The prompt text now starts at 20px. Two buttons next to the model picker change it by 2px, from 14px to 32px. The game saves the size in localStorage, so it stays the same after a reload.
The buttons do not take keyboard focus, so you keep typing right after a click. The box can now grow to 8 lines at the chosen size instead of a fixed height.
Proof
Before, at 14px:
After, at the new 20px default:
After 4 clicks on the larger button, at 28px:
A new run in the Playwright play test (
checkComposerFontSize) checks these results in a real browser:A unit test covers clamping, rounding, and the 20px fallback for a bad stored value. I did not test on a phone-width screen.
Reviewed with sol-loop: 1 round with gpt-6.1-sol. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code. Reviewed by GPT-6.1 Sol in Codex.
🤖 Generated with Claude Code