mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fixed excerpt display in post history modal (#21847)
REF https://linear.app/ghost/issue/DES-1026/visual-bug-with-excerpt-in-post-history-modal - The excerpt was not in line with the rest of the content. - The excerpt divider was visible even when there was no excerpt.
This commit is contained in:
parent
c2c9ef71e7
commit
9ffb05f922
2 changed files with 16 additions and 1 deletions
|
@ -27,8 +27,10 @@
|
|||
<div class="gh-editor-excerpt" data-test-post-history-preview-excerpt>
|
||||
{{this.selectedRevision.custom_excerpt}}
|
||||
</div>
|
||||
{{#if this.selectedRevision.custom_excerpt}}
|
||||
<hr class="gh-editor-title-divider">
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<KoenigLexicalEditor
|
||||
@lexical={{this.selectedRevision.lexical}}
|
||||
@cardConfig={{this.cardConfig}}
|
||||
|
|
|
@ -196,6 +196,19 @@
|
|||
color: var(--black);
|
||||
}
|
||||
|
||||
.gh-post-history .gh-editor-excerpt {
|
||||
max-width: 740px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.gh-post-history .gh-editor-title-divider {
|
||||
width: 100%;
|
||||
max-width: 740px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.gh-post-history-hidden-lexical {
|
||||
display: none;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue