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

Don't collapse grids on delete #6519

Closed
wants to merge 2 commits into from

Conversation

ruggi
Copy link
Contributor

@ruggi ruggi commented Oct 11, 2024

Problem:

Deleting the last element in a grid should not collapse the empty grid to 0-sizes.

Fix:

If deletion would empty the grid, if the grid lacks at least one dimension then explicitly size the grid based on its frame.

Before After
https://github.com/user-attachments/assets/4160ba7d-5cb4-4d3c-ae8b-0fe43d482686 https://github.com/user-attachments/assets/1fbf3552-f29f-42c9-9ebf-628f5df2265b

Fixes #6518

Copy link
Contributor

github-actions bot commented Oct 11, 2024

Try me

Copy link

relativeci bot commented Oct 11, 2024

#14722 Bundle Size — 57.94MiB (~+0.01%).

594ee40(current) vs 916e8b9 master#14701(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#14722
     Baseline
#14701
Regression  Initial JS 40.94MiB(~+0.01%) 40.94MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 17.94% 17.91%
No change  Chunks 21 21
No change  Assets 23 23
No change  Modules 4145 4145
No change  Duplicate Modules 213 213
No change  Duplicate Code 27.32% 27.32%
No change  Packages 477 477
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#14722
     Baseline
#14701
Regression  JS 57.93MiB (~+0.01%) 57.93MiB
Improvement  HTML 7.37KiB (-0.25%) 7.39KiB

Bundle analysis reportBranch feat/dont-collapse-empty-grid-de...Project dashboard


Generated by RelativeCIDocumentationReport issue

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.

this should probably be implemented in trueUpHuggingElements

@ruggi ruggi force-pushed the feat/dont-collapse-empty-grid-delete branch from bd5e1b9 to 594ee40 Compare October 11, 2024 10:10
@ruggi
Copy link
Contributor Author

ruggi commented Oct 11, 2024

closing this as we'll better fix #5525 and put this functionality in there

@ruggi ruggi closed this Oct 11, 2024
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.

don't collapse empty grids on delete
2 participants