GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(desktop): recover zoom from the upper limit by nateEc · Pull Request #4343 · pingdotgg/t3code

Conversation

@nateEc

@nateEc nateEc commented Jul 23, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

What Changed

  • Replace Electron built-in zoom menu roles with explicit focused-window zoom handlers.
  • Decrement the current zoom level directly, including when the upper limit has been reached.
  • Keep the existing shortcuts and add focused menu regression coverage.

Why

On Linux and Windows, Electron could leave the built-in Zoom Out role ineffective after reaching maximum UI zoom. Reset still worked, but users could otherwise become stuck at an unusable scale.

Closes #4238

Checklist

  • Focused desktop menu test passes
  • Desktop typecheck passes
  • Targeted lint and formatting pass

Note

Low Risk
Localized desktop menu behavior with a regression test; no auth, data, or shared API surface changes.

Overview
Fixes Zoom Out becoming a no-op on Linux/Windows after UI zoom hits Electron’s built-in maximum, while Actual Size still worked.

The View menu no longer uses Electron resetZoom / zoomIn / zoomOut roles. Actual Size, Zoom In, and Zoom Out now call custom handlers that read and write webContents zoom on the focused main window via setApplicationZoom, including decrementing from a high level (e.g. 9 → 8). Shortcuts are unchanged (CmdOrCtrl+0, +=, -, hidden Plus).

Tests add an ElectronWindow stub and assert Zoom Out lowers the mocked zoom level after menu configure.

Reviewed by Cursor Bugbot for commit 9cec1f5. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Fix zoom recovery from upper limit by replacing role-based zoom menu items with custom handlers

  • Replaces Electron's built-in role-based zoom menu items in the View menu with custom click handlers that read and set webContents zoom level directly via the ElectronWindow service.
  • Adds a setApplicationZoom effect that applies a transform (increment, decrement, or reset) to the focused window's zoom level; if no window is focused, the action is a no-op.
  • Behavioral Change: zoom controls no longer rely on Electron's default role behavior, so any role-specific side effects (e.g. native OS integration) are lost in favor of direct webContents zoom control.

Macroscope summarized 9cec1f5.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nateEc
fix(desktop): recover zoom from the upper limit
9cec1f5
- Replace Electron zoom roles with explicit zoom-level handlers.
- Decrement the focused window zoom directly even when the maximum level was reached.
- Add focused menu coverage for zooming out from level nine.
@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: cccec623-aa17-4177-b1c8-89ed0d7cf989

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Jul 23, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Jul 23, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved

Straightforward bug fix replacing Electron's built-in zoom role handlers with custom implementations that properly track current zoom level. The change is limited in scope, has clear intent, and includes test coverage for the new behavior.

You can customize Macroscope's approvability policy. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge

juliusmarminge commented Aug 15, 2026

Copy link
Copy Markdown
Member

Closing as superseded by #5691, which moved desktop zoom handling into DesktopWindow.zoomMain; merged #6649 further extends that current implementation. Thanks for the contribution.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: UI doesn't zoom out after the zoom limit is reached

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@nateEc @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.