mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Surfaced feature image caption in post history versions
No ref
This commit is contained in:
parent
3d785e4d95
commit
d26ba6ff4d
2 changed files with 28 additions and 2 deletions
|
@ -10,7 +10,12 @@
|
|||
<div class="gh-post-history-hidden-lexical previous">
|
||||
<div class="gh-editor-feature-image-container">
|
||||
<div class="gh-editor-feature-image">
|
||||
<img src="{{this.comparisonRevision.feature_image}}">
|
||||
{{#if this.comparisonRevision.feature_image}}
|
||||
<img src="{{this.comparisonRevision.feature_image}}">
|
||||
{{/if}}
|
||||
{{#if this.comparisonRevision.feature_image_caption}}
|
||||
<p>{{this.comparisonRevision.feature_image_caption}}"</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="gh-editor-title">{{this.previousTitle}}</div>
|
||||
|
@ -19,7 +24,12 @@
|
|||
<div class="gh-post-history-hidden-lexical current">
|
||||
<div class="gh-editor-feature-image-container">
|
||||
<div class="gh-editor-feature-image">
|
||||
<img src="{{this.selectedRevision.feature_image}}">
|
||||
{{#if this.selectedRevision.feature_image}}
|
||||
<img src="{{this.selectedRevision.feature_image}}">
|
||||
{{/if}}
|
||||
{{#if this.selectedRevision.feature_image_caption}}
|
||||
<p>{{this.selectedRevision.feature_image_caption}}</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="gh-editor-title">{{this.currentTitle}}</div>
|
||||
|
|
|
@ -158,6 +158,22 @@
|
|||
color: var(--black);
|
||||
}
|
||||
|
||||
.gh-post-history .show-diff .gh-editor-feature-image img {
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
.gh-post-history .show-diff .gh-editor-feature-image del img {
|
||||
opacity: 1;
|
||||
border: 3px solid var(--white);
|
||||
box-shadow: 0 0 0 2px var(--red);
|
||||
}
|
||||
|
||||
.gh-post-history .show-diff .gh-editor-feature-image ins img {
|
||||
opacity: 1;
|
||||
border: 3px solid var(--white);
|
||||
box-shadow: 0 0 0 2px var(--green);
|
||||
}
|
||||
|
||||
.gh-post-history .show-diff .gh-editor-title {
|
||||
opacity: .4;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue