Skip to content

Commit

Permalink
Fix server-side rendering for client (nth-child -> nth-of-type) (n…
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi authored Mar 1, 2024
1 parent e6b8411 commit 3b18efa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/viser/client/src/components/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ export default function SliderComponent({
...(marks === null
? /* Shift the mark labels so they don't spill too far out the left/right when we only have min and max marks. */
{
":first-child": {
"div:nth-child(2)": {
":first-of-type": {
"div:nth-of-type(2)": {
transform: "translate(-0.2rem, 0.03rem)",
},
},
":last-child": {
"div:nth-child(2)": {
":last-of-type": {
"div:nth-of-type(2)": {
transform: "translate(-90%, 0.03rem)",
},
},
Expand Down

0 comments on commit 3b18efa

Please sign in to comment.