X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fcommon%2FZeldaIcon.js;fp=resources%2Fjs%2Fcomponents%2Fcommon%2FZeldaIcon.js;h=18b13eb20664134032a24ce47bff5e2b4f7702ad;hb=31131fc56ecc52ba5ce8aa9854755b22620a7139;hp=457e6e91ba177c933dcb92cfe3bf39486f376a22;hpb=e0925d5b97ab0804222195eb4231c63b33703942;p=alttp.git diff --git a/resources/js/components/common/ZeldaIcon.js b/resources/js/components/common/ZeldaIcon.js index 457e6e9..18b13eb 100644 --- a/resources/js/components/common/ZeldaIcon.js +++ b/resources/js/components/common/ZeldaIcon.js @@ -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 ?