mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 06:15:28 +08:00
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">
|
<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}}
|
{{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>
|
||||||
{{{diff}}}
|
<div id="revisions">
|
||||||
|
{{{diff}}}
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,17 +19,17 @@
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
#revisions {
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
img {
|
img {
|
||||||
max-width: 670px;
|
max-width: 670px;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
.inline-diff {
|
.inline-diff {
|
||||||
width: 670px;
|
width: 670px;
|
||||||
word-wrap: break-word;
|
|
||||||
}
|
}
|
||||||
.markdown {
|
.markdown {
|
||||||
word-wrap: break-word;
|
|
||||||
white-space: pre-wrap;
|
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -38,6 +38,9 @@
|
||||||
td {
|
td {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
max-width: 440px;
|
||||||
|
word-wrap: break-word;
|
||||||
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.span8, .markdown {
|
.span8, .markdown {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user