diff --git a/komga-webui/src/components/PagesTable.vue b/komga-webui/src/components/PagesTable.vue index b956bb723..334cef95e 100644 --- a/komga-webui/src/components/PagesTable.vue +++ b/komga-webui/src/components/PagesTable.vue @@ -3,15 +3,17 @@ {{ $t('dialog.transient_book_details.pages_table.index') }} - {{ $t('dialog.transient_book_details.pages_table.filename') }} - {{ $t('dialog.transient_book_details.pages_table.media_type') }} - {{ $t('dialog.transient_book_details.pages_table.width') }} - {{ $t('dialog.transient_book_details.pages_table.height') }} + {{ $t('dialog.transient_book_details.pages_table.filename') }} + {{ $t('dialog.transient_book_details.pages_table.media_type') }} + {{ $t('dialog.transient_book_details.pages_table.width') }} + {{ $t('dialog.transient_book_details.pages_table.height') }} + {{ $t('dialog.transient_book_details.pages_table.size') }} @@ -21,15 +23,17 @@ :key="i" > {{ n }} - {{ $_.get(leftPages[n-1], 'fileName', '') }} - {{ $_.get(leftPages[n-1], 'mediaType', '') }} - {{ $_.get(leftPages[n-1], 'width', '') }} - {{ $_.get(leftPages[n-1], 'height', '') }} + {{ $_.get(leftPages[n-1], 'fileName', '') }} + {{ $_.get(leftPages[n-1], 'mediaType', '') }} + {{ $_.get(leftPages[n-1], 'width', '') }} + {{ $_.get(leftPages[n-1], 'height', '') }} + {{ $_.get(leftPages[n-1], 'size', '') }} diff --git a/komga-webui/src/components/dialogs/TransientBookDetailsDialog.vue b/komga-webui/src/components/dialogs/TransientBookDetailsDialog.vue index 0cb1163bd..27fc43bc1 100644 --- a/komga-webui/src/components/dialogs/TransientBookDetailsDialog.vue +++ b/komga-webui/src/components/dialogs/TransientBookDetailsDialog.vue @@ -19,32 +19,32 @@ - {{ $t('dialog.transient_book_details.label_candidate') }} + {{ $t('dialog.transient_book_details.label_candidate') }} {{ $t('dialog.transient_book_details.label_existing') }} {{ $t('dialog.transient_book_details.label_name') }} - {{ leftBook.name }} + {{ leftBook.name }} {{ rightBook.metadata.title }} {{ $t('dialog.transient_book_details.label_size') }} - {{ leftBook.size }} + {{ leftBook.size }} {{ rightBook.size }} {{ $t('dialog.transient_book_details.label_format') }} - {{ getBookFormatFromMediaType(leftBook.mediaType).type }} + {{ getBookFormatFromMediaType(leftBook.mediaType).type }} {{ getBookFormatFromMediaType(rightBook.media.mediaType).type }} {{ $t('dialog.transient_book_details.label_pages') }} - {{ leftBook.pages.length }} + {{ leftBook.pages.length }} {{ rightBook.media.pagesCount }} diff --git a/komga-webui/src/locales/en.json b/komga-webui/src/locales/en.json index 871bf41a1..f7dfd093e 100644 --- a/komga-webui/src/locales/en.json +++ b/komga-webui/src/locales/en.json @@ -505,6 +505,7 @@ "height": "Height", "index": "Index", "media_type": "Media type", + "size": "Size", "width": "Width" }, "title": "Book Details", diff --git a/komga-webui/src/plugins/vuetify.ts b/komga-webui/src/plugins/vuetify.ts index 8ceeffdb2..aad3e2fbf 100644 --- a/komga-webui/src/plugins/vuetify.ts +++ b/komga-webui/src/plugins/vuetify.ts @@ -34,6 +34,7 @@ export default new Vuetify({ accent: '#ff0335', 'contrast-1': colors.grey.lighten4, 'contrast-light-2': colors.grey.darken2, + 'diff': colors.green.lighten4, }, dark: { base: colors.shades.black, @@ -42,6 +43,7 @@ export default new Vuetify({ accent: '#ff0335', 'contrast-1': colors.grey.darken4, 'contrast-light-2': colors.grey.lighten2, + 'diff': colors.green.darken4, }, }, }, diff --git a/komga-webui/src/types/komga-books.ts b/komga-webui/src/types/komga-books.ts index 0fbfb42a1..a3d01300f 100644 --- a/komga-webui/src/types/komga-books.ts +++ b/komga-webui/src/types/komga-books.ts @@ -33,6 +33,8 @@ export interface PageDto { mediaType: string, width?: number, height?: number, + sizeBytes?: number, + size: string, } export interface PageDtoWithUrl { @@ -41,6 +43,8 @@ export interface PageDtoWithUrl { mediaType: string, width?: number, height?: number, + sizeBytes?: number, + size: string, url: string, }