Skip to content

Fix MAIN_MIN_WIDTH regression from DEFAULT_WIDTH bump#3612

Open
wojtekn wants to merge 1 commit into
trunkfrom
fix-main-min-width
Open

Fix MAIN_MIN_WIDTH regression from DEFAULT_WIDTH bump#3612
wojtekn wants to merge 1 commit into
trunkfrom
fix-main-min-width

Conversation

@wojtekn
Copy link
Copy Markdown
Contributor

@wojtekn wojtekn commented May 25, 2026

Related issues

  • N/A

How AI was used in this PR

Claude Code identified the root cause and applied the fix.

Proposed Changes

  • Hardcode MAIN_MIN_WIDTH to 712 (the original value: 900 - 208 + 20) instead of deriving it from DEFAULT_WIDTH

When DEFAULT_WIDTH was bumped from 900 to 1100 in #3161, MAIN_MIN_WIDTH silently grew from 712 to 912, making the app window unexpectedly constrained to a much wider minimum. Decoupling the two constants restores the previous behaviour.

Testing Instructions

  • Launch Studio and try resizing the window to a narrow width — it should now be possible to go down to ~712px wide (previously stuck at ~912px).

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

MAIN_MIN_WIDTH was derived from DEFAULT_WIDTH, so when DEFAULT_WIDTH was
increased from 900 to 1100 (in #3161), the minimum window width silently
jumped from 712 to 912. Hardcode 712 to restore the original value.
@wpmobilebot
Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 0872ce2 vs trunk

app-size

Metric trunk 0872ce2 Diff Change
App Size (Mac) 1339.26 MB 1339.23 MB 0.03 MB ⚪ 0.0%

site-editor

Metric trunk 0872ce2 Diff Change
load 1732 ms 1764 ms +32 ms ⚪ 0.0%

site-startup

Metric trunk 0872ce2 Diff Change
siteCreation 9624 ms 9593 ms 31 ms ⚪ 0.0%
siteStartup 4927 ms 4912 ms 15 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@wojtekn wojtekn requested a review from a team May 26, 2026 08:40
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