Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix long filename overflowing, closes #1052
zadam1911d64c1cf5
diff --git a/src/public/app/widgets/type_widgets/file.js b/src/public/app/widgets/type_widgets/file.jsindex 7ec5e43afb..275138781d 100644--- a/src/public/app/widgets/type_widgets/file.js+++ b/src/public/app/widgets/type_widgets/file.js@@ -5,17 +5,23 @@ import TypeWidget from "./type_widget.js";const TPL = `<div class="note-detail-file note-detail-printable">+ <style>+ .file-table td {+ overflow-wrap: anywhere;+ }+ </style>+<table class="file-table"><tr>- <th nowrap>Note ID:</th>+ <th>Note ID:</th><td class="file-note-id"></td>- <th nowrap>Original file name:</th>+ <th>Original file name:</th><td class="file-filename"></td></tr><tr>- <th nowrap>File type:</th>+ <th>File type:</th><td class="file-filetype"></td>- <th nowrap>File size:</th>+ <th>File size:</th><td class="file-filesize"></td></tr></table>@@ -94,7 +100,7 @@ export default class FileTypeWidget extends TypeWidget {toastService.showError("Upload of a new file revision failed.");}});-+return this.$widget;}@@ -130,4 +136,4 @@ export default class FileTypeWidget extends TypeWidget {getFileUrl() {return utils.getUrlForDownload("api/notes/" + this.noteId + "/download");}-}\ No newline at end of file+}