From 0f7b9ac7ab0e98e77370ed4d422b1477030793c6 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Tue, 23 Sep 2025 12:52:52 +0200 Subject: [PATCH] Move exif info into common "details" view --- src/assets/css/sendattachments.scss | 29 ++- src/assets/icons/ic_copy.vue | 11 ++ src/assets/icons/ic_download.vue | 8 +- src/assets/icons/ic_dropdown.vue | 2 +- src/assets/translations/en.json | 8 +- .../content-credentials/C2PAInfo.vue | 142 ++++++++++++--- .../content-credentials/CCProperty.vue | 5 +- .../content-credentials/CCSummary.vue | 4 + .../content-credentials/EXIFInfo.vue | 112 ------------ src/components/file_mode/AttachmentInfo.vue | 4 +- .../file_mode/EventAttachmentInfo.vue | 41 ++--- src/models/proof.ts | 172 ++++++++++++------ 12 files changed, 308 insertions(+), 230 deletions(-) create mode 100644 src/assets/icons/ic_copy.vue delete mode 100644 src/components/content-credentials/EXIFInfo.vue diff --git a/src/assets/css/sendattachments.scss b/src/assets/css/sendattachments.scss index 4ce3301..d8c5f73 100644 --- a/src/assets/css/sendattachments.scss +++ b/src/assets/css/sendattachments.scss @@ -516,7 +516,14 @@ $hiliteColor: #4642f1; .attachment-info { text-align: start; position: relative; + display: flex; + flex-direction: column; + height: 100%; + .attachment-info__content { + flex: 1 1 auto; + } + .attachment-info__quality { .attachment-info__quality__title { font-family: "Inter", sans-serif; @@ -613,12 +620,13 @@ $hiliteColor: #4642f1; font-size: 14px; line-height: 125%; letter-spacing: 0.4px; - margin-top: 8px; + margin-top: 22px; padding-bottom: 4px; a, a:visited { font-weight: 700; - color: #8A87FF; - text-decoration: none !important; + color: white; + text-decoration: underline !important; + margin-right: 4px; } } @@ -633,11 +641,13 @@ $hiliteColor: #4642f1; display: flex; .v-icon { + color: #dad9fc; padding: 9.33px; margin-right: 8px; width: 32px; height: 32px; background-color: black; + border-radius: 4px; } .detail-row__text { @@ -656,4 +666,17 @@ $hiliteColor: #4642f1; } } } + + .attachment-info__download-button { + font-family: 'Poppins', sans-serif; + font-weight: 700; + font-size: 14 * $chat-text-size; + color: white; + background-color: transparent; + border: 1px solid white; + border-radius: 24 * $chat-text-size; + height: 48 * $chat-text-size; + + flex: 0 0 (48 * $chat-text-size); + } } \ No newline at end of file diff --git a/src/assets/icons/ic_copy.vue b/src/assets/icons/ic_copy.vue new file mode 100644 index 0000000..4894d6b --- /dev/null +++ b/src/assets/icons/ic_copy.vue @@ -0,0 +1,11 @@ + diff --git a/src/assets/icons/ic_download.vue b/src/assets/icons/ic_download.vue index 6f60666..d2e5b45 100644 --- a/src/assets/icons/ic_download.vue +++ b/src/assets/icons/ic_download.vue @@ -2,14 +2,14 @@ + fill="currentColor" /> + fill="currentColor" /> + fill="currentColor" /> + fill="currentColor" /> \ No newline at end of file diff --git a/src/assets/icons/ic_dropdown.vue b/src/assets/icons/ic_dropdown.vue index 3983266..54549c6 100644 --- a/src/assets/icons/ic_dropdown.vue +++ b/src/assets/icons/ic_dropdown.vue @@ -5,7 +5,7 @@ /> - diff --git a/src/components/file_mode/AttachmentInfo.vue b/src/components/file_mode/AttachmentInfo.vue index 87ee095..8a32166 100644 --- a/src/components/file_mode/AttachmentInfo.vue +++ b/src/components/file_mode/AttachmentInfo.vue @@ -28,8 +28,7 @@ - - + @@ -37,7 +36,6 @@ import { Attachment } from "../../models/attachment"; import prettyBytes from "pretty-bytes"; import C2PAInfo from "../content-credentials/C2PAInfo.vue"; -import EXIFInfo from "../content-credentials/EXIFInfo.vue"; import { useI18n } from "vue-i18n"; import { computed } from "vue"; diff --git a/src/components/file_mode/EventAttachmentInfo.vue b/src/components/file_mode/EventAttachmentInfo.vue index ba36e83..c0bc596 100644 --- a/src/components/file_mode/EventAttachmentInfo.vue +++ b/src/components/file_mode/EventAttachmentInfo.vue @@ -1,28 +1,27 @@