From bb117ab4da0d31785baa9343679b66a41fc798c0 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 2 Feb 2024 18:33:23 -0600 Subject: [PATCH] Update:Authors page increase size to fill width with 2 per row #1026 --- pages/bookshelf/authors.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/bookshelf/authors.vue b/pages/bookshelf/authors.vue index fdffd948..7d538256 100644 --- a/pages/bookshelf/authors.vue +++ b/pages/bookshelf/authors.vue @@ -3,7 +3,7 @@
@@ -16,16 +16,21 @@ export default { return { loading: true, authors: [], - loadedLibraryId: null + loadedLibraryId: null, + cardWidth: 200 } }, computed: { currentLibraryId() { return this.$store.state.libraries.currentLibraryId + }, + cardHeight() { + return this.cardWidth * 1.25 } }, methods: { async init() { + this.cardWidth = (window.innerWidth - 64) / 2 if (!this.currentLibraryId) { return }