feat(attachments): display MIME type

This commit is contained in:
Elian Doran 2025-12-27 20:54:14 +02:00
parent faa069b8a1
commit c7bb5ff119
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View File

@ -1618,7 +1618,7 @@
"will_be_deleted_in": "This attachment will be automatically deleted in {{time}}", "will_be_deleted_in": "This attachment will be automatically deleted in {{time}}",
"will_be_deleted_soon": "This attachment will be automatically deleted soon", "will_be_deleted_soon": "This attachment will be automatically deleted soon",
"deletion_reason": ", because the attachment is not linked in the note's content. To prevent deletion, add the attachment link back into the content or convert the attachment into note.", "deletion_reason": ", because the attachment is not linked in the note's content. To prevent deletion, add the attachment link back into the content or convert the attachment into note.",
"role_and_size": "Role: {{role}}, Size: {{size}}", "role_and_size": "Role: {{role}}, size: {{size}}, MIME: {{- mimeType}}",
"link_copied": "Attachment link copied to clipboard.", "link_copied": "Attachment link copied to clipboard.",
"unrecognized_role": "Unrecognized attachment role '{{role}}'." "unrecognized_role": "Unrecognized attachment role '{{role}}'."
}, },

View File

@ -195,7 +195,11 @@ function AttachmentInfo({ attachment, isFullDetail }: { attachment: FAttachment,
) : (attachment.title)} ) : (attachment.title)}
</h4> </h4>
<div className="attachment-details"> <div className="attachment-details">
{t("attachment_detail_2.role_and_size", { role: attachment.role, size: utils.formatSize(attachment.contentLength) })} {t("attachment_detail_2.role_and_size", {
role: attachment.role,
size: utils.formatSize(attachment.contentLength),
mimeType: attachment.mime
})}
</div> </div>
<div style="flex: 1 1;" /> <div style="flex: 1 1;" />
</div> </div>