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

Fix misaligned gap controls when justifyContent or alignContent is set #6565

Merged
merged 4 commits into from
Oct 18, 2024

Conversation

gbalint
Copy link
Contributor

@gbalint gbalint commented Oct 18, 2024

Problem:
Gap controls are misaligned when justifyContent or alignContent is set, e.g.:
image

Fix:
GridRowHighlight (I renamed it to GridRowOrColumnHighlight) component sets alignContent (when it is a column) or justifyContent (when it is a row) to the value coming from the grid style.

Manual Tests:
I hereby swear that:

  • I opened a hydrogen project and it loaded
  • I could navigate to various routes in Play mode

Copy link
Contributor

github-actions bot commented Oct 18, 2024

Try me

Copy link

relativeci bot commented Oct 18, 2024

#14870 Bundle Size — 57.98MiB (~-0.01%).

ceef014(current) vs 916e8b9 master#14866(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Improvement 1 improvement
                 Current
#14870
     Baseline
#14866
Improvement  Initial JS 40.96MiB(-0.01%) 40.97MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 18% 17.88%
No change  Chunks 20 20
No change  Assets 22 22
No change  Modules 4153 4153
No change  Duplicate Modules 213 213
No change  Duplicate Code 27.33% 27.33%
No change  Packages 477 477
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Improvement 2 improvements
                 Current
#14870
     Baseline
#14866
Improvement  JS 57.97MiB (~-0.01%) 57.97MiB
Improvement  HTML 7.37KiB (-0.25%) 7.39KiB

Bundle analysis reportBranch fix/misaligned-gap-controlsProject dashboard


Generated by RelativeCIDocumentationReport issue

@gbalint gbalint merged commit 06565e5 into master Oct 18, 2024
13 checks passed
@gbalint gbalint deleted the fix/misaligned-gap-controls branch October 18, 2024 13:03
liady pushed a commit that referenced this pull request Dec 13, 2024
#6565)

**Problem:**
Gap controls are misaligned when justifyContent or alignContent is set,
e.g.:
<img width="337" alt="image"
src="https://github.com/user-attachments/assets/64150066-2114-4b20-84f3-fbedfce94840">


**Fix:**
GridRowHighlight (I renamed it to GridRowOrColumnHighlight) component
sets alignContent (when it is a column) or justifyContent (when it is a
row) to the value coming from the grid style.

**Manual Tests:**
I hereby swear that:

- [x] I opened a hydrogen project and it loaded
- [x] I could navigate to various routes in Play mode
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.

3 participants