[+] Add dynamic resize listener
This commit is contained in:
@@ -109,6 +109,14 @@
|
|||||||
this.artworks.sort((a, b) => b.date.getTime() - a.date.getTime());
|
this.artworks.sort((a, b) => b.date.getTime() - a.date.getTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update on resize
|
||||||
|
*/
|
||||||
|
created()
|
||||||
|
{
|
||||||
|
window.addEventListener("resize", () => this.$forceUpdate());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Style for title
|
* Style for title
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user