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%)", transform: "scale(0.3) translate(0, 20%)",
transformOrigin: "bottom center", transformOrigin: "bottom center",
pointerEvents: "none", pointerEvents: "none",
width: "100%",
}} }}
> >
<Image src={tokenLabel} /> <Image sx={{ width: "100%" }} src={tokenLabel} />
<svg <svg
style={{ style={{
position: "absolute", position: "absolute",