Skip to content

Commit

Permalink
fix: change css selector nth-child to nth-of-type
Browse files Browse the repository at this point in the history
nth-child can cause issues with SSR, prefer nth-of-type
  • Loading branch information
nickadamson committed Sep 21, 2022
1 parent ac1aa24 commit e9553ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/StyleWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ const StyleWrapper: React.FC<{ children: React.ReactNode }> = ({ children }) =>
width: "100%",
height: "100%",
},
".grid-item:nth-child(1)": {
".grid-item:nth-of-type(1)": {
gridColumnStart: 3,
gridRowStart: 3,
},
".grid-item:nth-child(6)": {
".grid-item:nth-of-type(6)": {
gridColumnStart: 6,
},
".grid-item:nth-child(9)": {
".grid-item:nth-of-type(9)": {
gridRowStart: 6,
},
".grid-item:nth-child(11)": {
".grid-item:nth-of-type(11)": {
gridColumnStart: -30,
gridRowStart: 9,
},
Expand Down

0 comments on commit e9553ae

Please sign in to comment.