[Admin] Fix formatting of first edit history

This commit is contained in:
Earlopain 2023-10-15 13:18:07 +02:00
parent 2620ea983e
commit b1e41b1e94
No known key found for this signature in database
GPG Key ID: 48860312319ADF61
2 changed files with 5 additions and 1 deletions

View File

@ -4,4 +4,8 @@
grid-template-columns: auto 1fr;
column-gap: 1em;
}
.original {
white-space: pre-wrap;
}
}

View File

@ -17,7 +17,7 @@
<% if edit.version > 1 %>
<%= text_diff(@edits[idx-1].body, edit.body) %>
<% else %>
<%= edit.body %>
<div class="original"><%= edit.body %></div>
<% end %>
</div>
</div>