[+] Add dynamic resize listener

This commit is contained in:
Hykilpikonna
2019-12-23 12:00:46 -05:00
parent 9191be770e
commit 55ec4b2972
+8
View File
@@ -109,6 +109,14 @@
this.artworks.sort((a, b) => b.date.getTime() - a.date.getTime());
}
/**
* Update on resize
*/
created()
{
window.addEventListener("resize", () => this.$forceUpdate());
}
/**
* Style for title
*/