-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide absolute resize controls for grid cells #6043
Conversation
#13269 Bundle Size — 62.51MiB (~+0.01%).
Warning Bundle contains 51 duplicate packages – View duplicate packages Bundle metrics
|
Current #13269 |
Baseline #13264 |
|
---|---|---|
Initial JS | 45.56MiB (~+0.01% ) |
45.56MiB |
Initial CSS | 0B |
0B |
Cache Invalidation | 21.62% |
21.84% |
Chunks | 30 |
30 |
Assets | 33 |
33 |
Modules | 4323 |
4323 |
Duplicate Modules | 524 |
524 |
Duplicate Code | 31.74% |
31.74% |
Packages | 450 |
450 |
Duplicate Packages | 51 |
51 |
Bundle size by type 2 changes
1 regression
1 improvement
Current #13269 |
Baseline #13264 |
|
---|---|---|
JS | 62.5MiB (~+0.01% ) |
62.5MiB |
HTML | 11.16KiB (-0.33% ) |
11.2KiB |
Bundle analysis report Branch feat/hide-absolute-resize-grid-c... Project dashboard
} | ||
if (MetadataUtils.isGridCell(canvasState.startingMetadata, selectedElement)) { | ||
return null | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you have to disable the other resize strategies (see https://github.com/concrete-utopia/utopia/blob/master/editor/src/components/canvas/canvas-strategies/canvas-strategies.tsx#L104 )?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah ce28bc7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in general it feels a bit clunky that all resize strategies need to yield, I took a note of this
**Problem:** Absolute resize controls are shown when a grid cell is selected. **Fix:** Don't enable the absolute resize strategy when a grid cell is selected. **Note** With the upcoming cell resize feature we might want to add another case to `isResizableStrategy`, for which I left a comment in `canvas-strategies.tsx`
Problem:
Absolute resize controls are shown when a grid cell is selected.
Fix:
Don't enable the absolute resize strategy when a grid cell is selected.
Note
With the upcoming cell resize feature we might want to add another case to
isResizableStrategy
, for which I left a comment incanvas-strategies.tsx