Skip to content

Build your personal knowledge base with Trilium Notes

fix file preview in note revisions dialog

zadama1ec6fe0aaa8
diff --git a/src/public/app/dialogs/note_revisions.js b/src/public/app/dialogs/note_revisions.js
index ad2e1c45f2..c7f42e6747 100644
--- a/src/public/app/dialogs/note_revisions.js
+++ b/src/public/app/dialogs/note_revisions.js
@@ -157,8 +157,8 @@ async function setContentPane() {
if (fullNoteRevision.content) {
$table.append($("<tr>").append(
- $("<th>").text("Preview:"),
- $("<td>").append(
+ $('<td colspan="2">').append(
+ $('<div style="font-weight: bold;">').text("Preview:"),
$('<pre class="file-preview-content"></pre>')
.text(fullNoteRevision.content)
)
@@ -196,4 +196,4 @@ $list.on('focus', '.dropdown-item', e => {
});
setContentPane();
-});
\ No newline at end of file
+});