fix file preview in note revisions dialog

This commit is contained in:
zadam 2020-10-13 23:09:57 +02:00
parent 18cc9f2475
commit a1ec6fe0aa

View File

@ -157,8 +157,8 @@ async function setContentPane() {
if (fullNoteRevision.content) { if (fullNoteRevision.content) {
$table.append($("<tr>").append( $table.append($("<tr>").append(
$("<th>").text("Preview:"), $('<td colspan="2">').append(
$("<td>").append( $('<div style="font-weight: bold;">').text("Preview:"),
$('<pre class="file-preview-content"></pre>') $('<pre class="file-preview-content"></pre>')
.text(fullNoteRevision.content) .text(fullNoteRevision.content)
) )
@ -196,4 +196,4 @@ $list.on('focus', '.dropdown-item', e => {
}); });
setContentPane(); setContentPane();
}); });