revision history: proper word-wrap in markdown view
This commit is contained in:
parent
c6fb60e0a0
commit
fd749a9c6e
|
@ -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}} — <span class="edit-reason">{{edit_reason}}</span>{{/if}}
|
||||
</div>
|
||||
<div id="revisions">
|
||||
{{{diff}}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue