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 }