Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Convert to grid #6097
Convert to grid #6097
Changes from 3 commits
1858a3a
0ab1d6e
6595df3
f87493b
1e610b5
02c015c
2968526
a9e3b52
c1b2a9d
4c269fb
63cf9b3
e9c412b
8255cf1
fe1303c
ae33713
83a7e54
bfba9e5
96412e6
0875c97
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I think this should also have a logic branch so that it makes sure that the combined number of resulting cells is
>=
than the number of children. For example if you have N children resulting from duplication, all having the exact same coordinates, the resulting grid template would be incorrect (e.g. 1x1 instead of 1xN)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.
Discussed on a side channel, I'll implement this on a separate PR because that way we'll have a holistic overview of the convert-to-grid strategy
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.
keeping this unresolved so we can find it quickly later
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.
Should this return
'none'
rather thannull
? I'm genuinely unsureThere 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.
Completely fair question, I added the
?? null
to remove the| undefined
from the type ofspecialSizeMeasurements.layoutSystemForChildren
to make it a less noisy type. I didn't add'none'
to make the type ofdetectedLayoutSystems
similar to what we'd get if we checkedspecialSizeMeasurements.layoutSystemForChildren
for a single element. The default value might as well be'none'
(it wouldn't matter for the downstream checks), but I didn't want to get creative and wanted to stick to the "spirit" ofspecialSizeMeasurements.layoutSystemForChildren