diff --git a/client/components/covers/DisplayCover.vue b/client/components/covers/DisplayCover.vue new file mode 100644 index 000000000..c7c721a5f --- /dev/null +++ b/client/components/covers/DisplayCover.vue @@ -0,0 +1,113 @@ +// Displays a book cover, given a cover image object with url, width, and height properties. +// It supports showing the cover in a specific aspect ratio, displaying resolution, +// and providing an option to open the cover in a new tab. +// This component exists in order to avoid a second api call per image. Since the images are being queried and sorted on a parent component (Cover.vue). + + + + diff --git a/client/components/covers/SortedCovers.vue b/client/components/covers/SortedCovers.vue new file mode 100644 index 000000000..edc84db34 --- /dev/null +++ b/client/components/covers/SortedCovers.vue @@ -0,0 +1,102 @@ +// This component sorts and displays book covers based on their aspect ratio. +// It separates covers into primary (preferred aspect ratio) and secondary (opposite aspect ratio) sections. +// Covers are displayed with options to select, view resolution, and open in a new tab. + + + + + + diff --git a/client/components/modals/item/tabs/Cover.vue b/client/components/modals/item/tabs/Cover.vue index 3cbc63a7e..0200c221a 100644 --- a/client/components/modals/item/tabs/Cover.vue +++ b/client/components/modals/item/tabs/Cover.vue @@ -2,7 +2,7 @@
-
+
@@ -16,10 +16,10 @@
-
+
-
-
+
+
upload @@ -33,16 +33,16 @@
-
-
+
+

{{ localCovers.length }} local image{{ localCovers.length !== 1 ? 's' : '' }}

{{ showLocalCovers ? $strings.ButtonHide : $strings.ButtonShow }}
-
+