feat(note_info): separate note type from mime type

This commit is contained in:
Elian Doran 2025-12-16 17:47:31 +02:00
parent bea15c46e5
commit 7222b233f0
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -825,6 +825,7 @@
"created": "Created",
"modified": "Modified",
"type": "Type",
"mime": "MIME type",
"note_size": "Note size",
"note_size_info": "Note size provides rough estimate of storage requirements for this note. It takes into account note's content and content of its note revisions.",
"calculate": "calculate",

View File

@ -232,7 +232,8 @@ export function NoteInfoBadge({ note, setSimilarNotesShown }: NoteInfoContext) {
{originalFileName && <NoteInfoValue text={t("file_properties.original_file_name")} value={originalFileName} />}
<NoteInfoValue text={t("note_info_widget.created")} value={formatDateTime(metadata?.dateCreated)} />
<NoteInfoValue text={t("note_info_widget.modified")} value={formatDateTime(metadata?.dateModified)} />
<NoteInfoValue text={t("note_info_widget.type")} value={<span>{note.type} {note.mime && <span>({note.mime})</span>}</span>} />
<NoteInfoValue text={t("note_info_widget.type")} value={note.type} />
<NoteInfoValue text={t("note_info_widget.mime")} value={note.mime} />
<NoteInfoValue text={t("note_info_widget.note_id")} value={<code>{note.noteId}</code>} />
<NoteInfoValue text={t("note_info_widget.note_size")} title={t("note_info_widget.note_size_info")} value={<NoteSizeWidget {...sizeProps} />} />
</ul>