Skip to content

fix: v2: New Windows fit to content#2190

Closed
camielvs wants to merge 1 commit into05-01-chore_v2_windows_are_resizeable_in_any_directionfrom
05-01-fix_v2_new_windows_fit_to_content
Closed

fix: v2: New Windows fit to content#2190
camielvs wants to merge 1 commit into05-01-chore_v2_windows_are_resizeable_in_any_directionfrom
05-01-fix_v2_new_windows_fit_to_content

Conversation

@camielvs
Copy link
Copy Markdown
Collaborator

@camielvs camielvs commented May 1, 2026

Description

Small improvement to floating windows so that they fit size (within reason) to their content when first created. This is to avoid giant empty windows being created over the top of the canvas, as well as ludicrously small windows that are not helpful.

Additionally, this PR moves the resizable and content fitting logic into separate hooks for better readability and future reuse.

Related Issue and Pull requests

Closes https://github.com/Shopify/oasis-frontend/issues/611

Type of Change

  • Improvement

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

before

image.png

after

image.png

Test Instructions

Create some new floating windows and confirm they are reasonably sized.

Additional Comments

Copy link
Copy Markdown
Collaborator Author

camielvs commented May 1, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

🎩 Preview

A preview build has been created at: 05-01-fix_v2_new_windows_fit_to_content/bed7060

Copy link
Copy Markdown
Collaborator Author

camielvs commented May 1, 2026

Actually it turns out this is essentially a non-issue. The original problem must have been fixed elsewhere

@camielvs camielvs closed this May 1, 2026
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