revision history: proper word-wrap in markdown view

This commit is contained in:
Régis Hanol 2013-12-16 15:57:13 +01:00
parent c6fb60e0a0
commit fd749a9c6e
2 changed files with 9 additions and 4 deletions

View File

@ -19,6 +19,8 @@
<div id="revision-details">
{{i18n post.revisions.details.edited_by}} {{avatar this imageSize="small"}} {{username}} <span class="date">{{date path="created_at" leaveAgo="true"}}</span> {{#if edit_reason}} &mdash; <span class="edit-reason">{{edit_reason}}</span>{{/if}}
</div>
{{{diff}}}
<div id="revisions">
{{{diff}}}
</div>
{{/if}}
</div>

View File

@ -19,17 +19,17 @@
padding: 5px;
margin-top: 10px;
}
#revisions {
word-wrap: break-word;
}
img {
max-width: 670px;
height: auto;
}
.inline-diff {
width: 670px;
word-wrap: break-word;
}
.markdown {
word-wrap: break-word;
white-space: pre-wrap;
font-family: monospace;
font-size: 12px;
width: 100%;
@ -38,6 +38,9 @@
td {
width: 50%;
vertical-align: top;
max-width: 440px;
word-wrap: break-word;
white-space: pre-wrap;
}
}
.span8, .markdown {