]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/common/ZeldaIcon.js
remove some useless svg groups
[alttp.git] / resources / js / components / common / ZeldaIcon.js
index 457e6e91ba177c933dcb92cfe3bf39486f376a22..18b13eb20664134032a24ce47bff5e2b4f7702ad 100644 (file)
@@ -169,9 +169,8 @@ const ZeldaIcon = ({ name, svg, title }) => {
                        href={isOnItemMap(strippedName) ? ITEM_MAP_URL : src}
                        width={ITEM_MAP_WIDTH}
                        height={ITEM_MAP_HEIGHT}
-                       x="0"
-                       y="0"
-                       transform={`translate(-${clipX + 0.5} -${clipY + 0.5})`}
+                       x={`-${clipX + 0.5}`}
+                       y={`-${clipY + 0.5}`}
                        clipPath={`xywh(${clipX + cropX} ${clipY + cropY} ${cropW} ${cropH})`}
                >
                        {realTitle ?