Skip to content

Commit dd2eca7

Browse files
authored
Fix server-side rendering for client (nth-child -> nth-of-type) (#177)
1 parent 7d86e75 commit dd2eca7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/viser/client/src/components/Slider.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ export default function SliderComponent({
5050
...(marks === null
5151
? /* Shift the mark labels so they don't spill too far out the left/right when we only have min and max marks. */
5252
{
53-
":first-child": {
54-
"div:nth-child(2)": {
53+
":first-of-type": {
54+
"div:nth-of-type(2)": {
5555
transform: "translate(-0.2rem, 0.03rem)",
5656
},
5757
},
58-
":last-child": {
59-
"div:nth-child(2)": {
58+
":last-of-type": {
59+
"div:nth-of-type(2)": {
6060
transform: "translate(-90%, 0.03rem)",
6161
},
6262
},

0 commit comments

Comments
 (0)