Skip to content
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

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

ruggi
Copy link
Contributor

@ruggi ruggi commented Jul 8, 2024

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

Copy link
Contributor

github-actions bot commented Jul 8, 2024

Try me

Copy link

relativeci bot commented Jul 8, 2024

#13269 Bundle Size — 62.51MiB (~+0.01%).

ce28bc7(current) vs 6339ece master#13264(baseline)

Warning

Bundle contains 51 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#13269
     Baseline
#13264
Regression  Initial JS 45.56MiB(~+0.01%) 45.56MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 21.62% 21.84%
No change  Chunks 30 30
No change  Assets 33 33
No change  Modules 4323 4323
No change  Duplicate Modules 524 524
No change  Duplicate Code 31.74% 31.74%
No change  Packages 450 450
No change  Duplicate Packages 51 51
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#13269
     Baseline
#13264
Regression  JS 62.5MiB (~+0.01%) 62.5MiB
Improvement  HTML 11.16KiB (-0.33%) 11.2KiB

Bundle analysis reportBranch feat/hide-absolute-resize-grid-c...Project dashboard

}
if (MetadataUtils.isGridCell(canvasState.startingMetadata, selectedElement)) {
return null
}
Copy link
Contributor

@gbalint gbalint Jul 8, 2024

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah ce28bc7

Copy link
Contributor

@balazsbajorics balazsbajorics left a 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

@ruggi ruggi merged commit 4f56c5e into master Jul 9, 2024
17 checks passed
@ruggi ruggi deleted the feat/hide-absolute-resize-grid-cells branch July 9, 2024 11:21
liady pushed a commit that referenced this pull request Dec 13, 2024
**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`
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.

4 participants