Skip to content

feat: add native zoom support (Cmd+/- and Cmd+0)#97

Open
tellaho wants to merge 1 commit intomainfrom
tho/zoom-fix
Open

feat: add native zoom support (Cmd+/- and Cmd+0)#97
tellaho wants to merge 1 commit intomainfrom
tho/zoom-fix

Conversation

@tellaho
Copy link
Copy Markdown
Collaborator

@tellaho tellaho commented Apr 3, 2026

Summary

  • Adds Cmd+= / Cmd+- / Cmd+0 keyboard shortcuts for zoom in, zoom out, and reset using Tauri's native webview setZoom API
  • Zoom range: 70%–130% in 10% increments (3 steps each direction from 100%)
  • Persists zoom level to localStorage so it survives app restarts
  • Adds core:webview:allow-set-webview-zoom capability permission

Screen Recording 2026-04-03 at 2 06 09 PM

Test plan

  • Unit tests for useZoom hook (12 tests covering persistence, keyboard shortcuts, Tauri API calls, clamping, and cleanup)
  • Manual: Cmd+= zooms in, Cmd+- zooms out, Cmd+0 resets
  • Manual: Verify zoom clamps at 70% (min) and 130% (max)
  • Manual: Quit and relaunch — zoom level is restored

🤖 Generated with Claude Code

@tellaho tellaho requested a review from wesbillman as a code owner April 3, 2026 20:34
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c376c2e732

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@tellaho tellaho force-pushed the tho/zoom-fix branch 4 times, most recently from da6590d to cd9b71f Compare April 3, 2026 21:05
Adds keyboard-driven zoom using Tauri's webview setZoom API.
Zoom level persists across restarts via localStorage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants