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

Keep shorthand values when changing grid item location #6626

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

ruggi
Copy link
Contributor

@ruggi ruggi commented Nov 8, 2024

Problem:

Changing a grid item location that spans multiple cells via a shorthand (e.g. gridColumn: '3 / 5') regressed and now the interaction causes the element to shrink to 1-sized dimensions.

Fix:

When checking whether to keep the end pins, check whether they come from a shorthand prop too.

Also, fix naming of variables when calculating the cell bounds so width is related to cols and height is related to rows.

Fixes #6625

Copy link
Contributor

github-actions bot commented Nov 8, 2024

Try me

Copy link

relativeci bot commented Nov 8, 2024

#15080 Bundle Size — 58.06MiB (~+0.01%).

53e9939(current) vs d1d46c1 master#15078(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#15080
     Baseline
#15078
Regression  Initial JS 41.04MiB(~+0.01%) 41.04MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 18.11% 18%
No change  Chunks 20 20
No change  Assets 22 22
No change  Modules 4167 4167
No change  Duplicate Modules 213 213
No change  Duplicate Code 27.3% 27.3%
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
#15080
     Baseline
#15078
Regression  JS 58.06MiB (~+0.01%) 58.06MiB
Improvement  HTML 7.37KiB (-0.25%) 7.39KiB

Bundle analysis reportBranch fix/change-location-keep-shortha...Project dashboard


Generated by RelativeCIDocumentationReport issue

@ruggi ruggi merged commit c162a94 into master Nov 8, 2024
16 checks passed
@ruggi ruggi deleted the fix/change-location-keep-shorthand branch November 8, 2024 18:23
liady pushed a commit that referenced this pull request Dec 13, 2024
**Problem:**

Changing a grid item location that spans multiple cells via a shorthand
(e.g. `gridColumn: '3 / 5'`) regressed and now the interaction causes
the element to shrink to 1-sized dimensions.

**Fix:**

When checking whether to keep the end pins, check whether they come from
a shorthand prop too.

Also, fix naming of variables when calculating the cell bounds so width
is related to cols and height is related to rows.

Fixes #6625
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.

Keep shorthand values when changing grid item location
3 participants