Fix token label position with large tokens

This commit is contained in:
Mitchell McCaffrey 2020-04-13 10:32:42 +10:00
parent 5575e985dc
commit 974e1d5792

View File

@ -11,9 +11,10 @@ function TokenLabel({ label }) {
transform: "scale(0.3) translate(0, 20%)",
transformOrigin: "bottom center",
pointerEvents: "none",
width: "100%",
}}
>
<Image src={tokenLabel} />
<Image sx={{ width: "100%" }} src={tokenLabel} />
<svg
style={{
position: "absolute",