diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-05-24 21:51:45 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-05-24 21:51:45 +1000 |
| commit | a7c93c76780ee99952656cb02c1e619d5e0f289c (patch) | |
| tree | 92798c3ece103736b8c29c82bfa7a849de49d1c9 | |
| parent | 5d5a1e225712cc0d33e5d11c5c282227ffc1aeef (diff) | |
Fix compound-image sub-image misalignment
| -rw-r--r-- | src/components/Tile.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Tile.vue b/src/components/Tile.vue index df5c024..021db32 100644 --- a/src/components/Tile.vue +++ b/src/components/Tile.vue @@ -429,7 +429,7 @@ export default defineComponent({ backgroundSize: '125%', borderRadius: 'inherit', clipPath: idx == 0 ? 'polygon(0 0, 100% 0, 0 100%)' : 'polygon(100% 0, 0 100%, 100% 100%)', - backgroundPosition: idx == 0 ? `${-w/4}px ${-h/4}px` : `${w/4}px ${h/4}px`, + backgroundPosition: idx == 0 ? `${-w/4}px ${-h/4}px` : '0px 0px', }; }, onTransitionEnd(evt: Event){ |
