Skip to content

feat(preview): add width adjustment shortcuts - #324

Open
PathGao wants to merge 22 commits into
alecdotdev:masterfrom
PathGao:feat/preview-width-shortcuts
Open

feat(preview): add width adjustment shortcuts#324
PathGao wants to merge 22 commits into
alecdotdev:masterfrom
PathGao:feat/preview-width-shortcuts

Conversation

@PathGao

@PathGao PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds Cmd/Ctrl+Option/Alt+[ and ] to decrease or increase preview content width by 40 px.
  • The shortcuts only run while the preview is visible; inputs, Monaco, modals, Settings, and Home do not receive them.
  • Leaving Full width mode is explicit before applying a width adjustment.

Validation

  • npm run check
  • npm test (147 passing)
  • npm run build

Stack

Part of #263. This PR follows #320#321#322#323. The next PR handles the legacy full-width preference migration.

Post-deploy monitoring

  • Verify the shortcuts on macOS, Windows, and Linux keyboard layouts.
  • Confirm a focused editor, Find input, Settings modal, and confirmation dialog ignore the shortcuts.

@PathGao

PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

@alecdotdev #324 is the fourth PR in the #263 stack. It adds the scoped Cmd/Ctrl+Option/Alt+[ and ] controls, after #323.

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