Skip to content

Build your personal knowledge base with Trilium Notes

avoid overflowing of long mime type

zadamf885388bf7fd
diff --git a/src/public/javascripts/widgets/note_info.js b/src/public/javascripts/widgets/note_info.js
index 281c8ae94b..1f71fd03db 100644
--- a/src/public/javascripts/widgets/note_info.js
+++ b/src/public/javascripts/widgets/note_info.js
@@ -42,7 +42,7 @@ class NoteInfoWidget extends StandardWidget {
$dateCreated.text(note.dateCreated);
$dateModified.text(note.dateModified);
$type.text(note.type);
- $mime.text(note.mime);
+ $mime.text(note.mime).attr("title", note.mime);
}
eventReceived(name, data) {
diff --git a/src/public/stylesheets/desktop.css b/src/public/stylesheets/desktop.css
index 9c658f4882..6bc21b814e 100644
--- a/src/public/stylesheets/desktop.css
+++ b/src/public/stylesheets/desktop.css
@@ -417,4 +417,11 @@ body {
#widgets-configuration .handle {
margin-right: 20px;
display: inline-block;
+}
+
+.note-info-mime {
+ max-width: 13em;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
\ No newline at end of file