mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-02-04 05:40:21 -07:00
Fix #1532
This commit is contained in:
parent
e5d8b910be
commit
6e8466c7ee
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ export default Vue.extend({
|
||||||
const xp = mouseX / this.$el.offsetWidth * 100;
|
const xp = mouseX / this.$el.offsetWidth * 100;
|
||||||
const yp = mouseY / this.$el.offsetHeight * 100;
|
const yp = mouseY / this.$el.offsetHeight * 100;
|
||||||
this.$el.style.backgroundPosition = xp + '% ' + yp + '%';
|
this.$el.style.backgroundPosition = xp + '% ' + yp + '%';
|
||||||
this.$el.style.backgroundImage = 'url("' + this.image.url + '?thumbnail")';
|
this.$el.style.backgroundImage = `url("${this.image.url}")`;
|
||||||
},
|
},
|
||||||
|
|
||||||
onMouseleave() {
|
onMouseleave() {
|
||||||
|
|
Loading…
Reference in a new issue