Skip to content

fix(desktop): preserve artboard scroll bounds and fit zoom calculation - #417

Open
mohammadrezwankhan wants to merge 1 commit into
OpenCoworkAI:mainfrom
mohammadrezwankhan:fix/preview-scaling
Open

fix(desktop): preserve artboard scroll bounds and fit zoom calculation#417
mohammadrezwankhan wants to merge 1 commit into
OpenCoworkAI:mainfrom
mohammadrezwankhan:fix/preview-scaling

Conversation

@mohammadrezwankhan

Copy link
Copy Markdown

Summary

Fixes preview scaling and zoom bounds for desktop and tablet artboards in PreviewPane. The scaled wrapper now preserves minimum scroll dimensions, so manually zoomed artboards cannot be flex-shrunk and clipped within the preview stage.

Type of change

  • Bug fix
  • New feature
  • Refactor (no behavior change)
  • Documentation
  • Build / CI / tooling

Linked issues

Fixes #384

Refs #363

Validation

  • pnpm lint
  • pnpm typecheck
  • pnpm test (all 10 workspace tasks passed)
  • Added a focused regression test for scaled minimum scroll bounds
  • Added a changeset for the user-visible desktop fix

Scope

This change is intentionally limited to the renderer preview frame layout and its unit coverage. It introduces no dependencies or architectural changes.

Copilot AI lite review requested due to automatic review settings August 25, 2026 06:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added docs Documentation area:desktop apps/desktop (Electron shell, renderer) labels Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:desktop apps/desktop (Electron shell, renderer) docs Documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Design scaling not working

2 participants