Skip to content

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

Closed
PathGao wants to merge 1 commit into
sftwrdotdev:feat/configure-preview-width-preferencefrom
PathGao:feat/preview-width-shortcuts
Closed

feat(preview): add width adjustment shortcuts#324
PathGao wants to merge 1 commit into
sftwrdotdev:feat/configure-preview-width-preferencefrom
PathGao:feat/preview-width-shortcuts

Conversation

@PathGao

@PathGao PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

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
Collaborator Author

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

@PathGao
PathGao force-pushed the feat/preview-width-shortcuts branch from 0aaa533 to c3b4173 Compare August 2, 2026 05:44
@PathGao
PathGao changed the base branch from master to feat/configure-preview-width-preference August 2, 2026 05:45
@PathGao

PathGao commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by native Stack PR #349 (Stack #353). Closing this fork-head PR so #349 is the active review path.

@PathGao PathGao closed this Aug 2, 2026
@PathGao
PathGao deleted the feat/preview-width-shortcuts branch August 2, 2026 08:34
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