-
Notifications
You must be signed in to change notification settings - Fork 172
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 span when reordering grid items #6642
Conversation
#15140 Bundle Size — 58.08MiB (~+0.01%).092c1fe(current) vs d1d46c1 master#15133(baseline) Warning Bundle contains 70 duplicate packages – View duplicate packages Bundle metrics
|
Current #15140 |
Baseline #15133 |
|
---|---|---|
Initial JS | 41.05MiB (~+0.01% ) |
41.05MiB |
Initial CSS | 0B |
0B |
Cache Invalidation | 18.13% |
18.54% |
Chunks | 20 |
20 |
Assets | 22 |
22 |
Modules | 4169 |
4169 |
Duplicate Modules | 213 |
213 |
Duplicate Code | 27.3% |
27.3% |
Packages | 477 |
477 |
Duplicate Packages | 70 |
70 |
Bundle size by type 2 changes
1 regression
1 improvement
Current #15140 |
Baseline #15133 |
|
---|---|---|
JS | 58.07MiB (~+0.01% ) |
58.07MiB |
HTML | 7.37KiB (-0.25% ) |
7.39KiB |
Bundle analysis report Branch feat/grid-span-reorder Project dashboard
Generated by RelativeCI Documentation Report issue
const height = gridConfig?.originalCellBounds.height ?? 1 | ||
|
||
let propsToUpdate: PropertyToUpdate[] = [] | ||
propsToUpdate.push(propertyToDelete(PP.create('style', 'gridColumnStart'))) |
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.
where are these mutations coming from? 🙂 I think we usually do an array literal with spreads and ternaries to achieve conditional elements
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.
they come from what I thought was better readability, but no problem, updated in 092c1fe
(#6642)
**Problem:** Spans (or otherwise 1+ sized elements) are not preserved when using `gridReorderStrategy`. **Fix:** When running the reorder strategy, instead of nuking all positioning props only nuke the ones which are not used and, for elements that occupy multiple cells, set the respective width or height using the `span` syntax on the correct shorthand. I also took this chance to move the reorder tests to their own file (and added the new tests there). Fixes #6641
**Problem:** Spans (or otherwise 1+ sized elements) are not preserved when using `gridReorderStrategy`. **Fix:** When running the reorder strategy, instead of nuking all positioning props only nuke the ones which are not used and, for elements that occupy multiple cells, set the respective width or height using the `span` syntax on the correct shorthand. I also took this chance to move the reorder tests to their own file (and added the new tests there). Fixes #6641
Problem:
Spans (or otherwise 1+ sized elements) are not preserved when using
gridReorderStrategy
.Fix:
When running the reorder strategy, instead of nuking all positioning props only nuke the ones which are not used and, for elements that occupy multiple cells, set the respective width or height using the
span
syntax on the correct shorthand.I also took this chance to move the reorder tests to their own file (and added the new tests there).
Fixes #6641