0
Fork 0
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:
Sanne de Vries 2024-12-10 13:35:52 +01:00 committed by GitHub
parent c2c9ef71e7
commit 9ffb05f922
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 1 deletions

View file

@ -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}}

View file

@ -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;
}