Skip to content

Commit 2a06153

Browse files
committed
Simplified marker transforms
1 parent 7c019e7 commit 2a06153

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/ui/widgets/Tank/tankWithScale.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ export const TankWithScale = (props: {
3737
}}
3838
>
3939
<span
40+
id="maxMarker"
4041
className={classes.ScaleMarker}
4142
style={{
42-
height: "30px",
43-
width: "100px",
4443
top: "10%",
4544
color: foregroundColor.toString(),
46-
transform: "rotate(-90deg) translateX(15px) translateY(-35px)",
45+
writingMode: "vertical-lr",
46+
scale: "-1",
47+
transform: "translateY(50%)",
4748
...font?.css()
4849
}}
4950
>
@@ -58,11 +59,11 @@ export const TankWithScale = (props: {
5859
<span
5960
className={classes.ScaleMarker}
6061
style={{
61-
height: "30px",
62-
width: "100px",
6362
top: "50%",
6463
color: foregroundColor.toString(),
65-
transform: "rotate(-90deg) translateX(15px) translateY(-35px)",
64+
writingMode: "vertical-lr",
65+
scale: "-1",
66+
transform: "translateY(50%)",
6667
...font?.css()
6768
}}
6869
>
@@ -79,11 +80,11 @@ export const TankWithScale = (props: {
7980
<span
8081
className={classes.ScaleMarker}
8182
style={{
82-
height: "30px",
83-
width: "100px",
8483
top: "90%",
8584
color: foregroundColor.toString(),
86-
transform: "rotate(-90deg) translateX(15px) translateY(-35px)",
85+
writingMode: "vertical-lr",
86+
scale: "-1",
87+
transform: "translateY(50%)",
8788
...font?.css()
8889
}}
8990
>

0 commit comments

Comments
 (0)