Skip to content

Make prompt text bigger and let players resize it - #3

Merged
Byntham merged 1 commit into
mainfrom
t3/prompt-box-text-size
Nov 5, 2026
Merged

Byntham merged 1 commit into
mainfrom
t3/prompt-box-text-size

Conversation

@Byntham

@Byntham Byntham commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

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:

Prompt box before, 14px text

After, at the new 20px default:

Prompt box after, 20px text with size buttons

After 4 clicks on the larger button, at 28px:

Prompt box at 28px

A new run in the Playwright play test (checkComposerFontSize) checks these results in a real browser:

  • The editor's computed font size is 20px on first load.
  • Two clicks on the larger button give 24px.
  • Keys typed after a click still reach the composer draft.
  • The size is still 24px after a reload.
  • Twenty clicks on the smaller button stop at 14px.

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

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>
@Byntham
Byntham merged commit 5f4b85c into main Nov 5, 2026
1 check passed
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.

1 participant