From ea6bb0a8478fc3bd6b2a32f09846ae897ad74f06 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Sun, 8 Jan 2023 17:04:08 +0100 Subject: [PATCH] Metadata Table Alignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch updates the metadata table in the book details view, turning it into a CSS grid layout. This fixes a few issues with the current layout: - Keys and values are not vertically aligned with the value being displayed a little bit above the baseline of the key. - There is no horizontal alignment of the table columns. In fact, it is technically not a table despite the CSS being tuned to almost look like one. Just turning this into a real grid looks cleaner. - The code for making multi-line values not wrap is broken. This fixes the problem. This also renames “Publish Year” to “Published”. Mainly because it is shorter. --- pages/item/_id.vue | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/pages/item/_id.vue b/pages/item/_id.vue index 2313ba41..afb3b9ac 100644 --- a/pages/item/_id.vue +++ b/pages/item/_id.vue @@ -35,33 +35,32 @@

connected

{{ libraryItem.serverAddress }}

-
-
- Narrators + +
+
+ Narrators
-
+
-
-
-
- Publish Year + +
+ Published
-
+
{{ publishedYear }}
-
-
-
- Genres + +
+ Genres
-
+