0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed PSM seo preview title overflowing bug

This commit is contained in:
Sanne de Vries 2021-03-30 10:41:36 +02:00
parent c41a1f77f8
commit d3ace95ff6
2 changed files with 6 additions and 2 deletions

View file

@ -199,7 +199,7 @@
@focus-out={{action "setMetaTitle" this.metaTitleScratch}}
@stopEnterKeyDownPropagation={{true}}
data-test-field="meta-title" />
<p>Recommended: <b>70</b> characters. Youve used {{gh-count-down-characters this.metaTitleScratch 70}}</p>
<p>Recommended: <b>60</b> characters. Youve used {{gh-count-down-characters this.metaTitleScratch 60}}</p>
<GhErrorMessage @errors={{this.post.errors}} @property="meta-title" />
</GhFormGroup>
@ -241,7 +241,7 @@
<div class="gh-seo-search-bar">{{svg-jar "google-search"}}</div>
</div>
<div class="gh-seo-preview-link">{{this.config.blogDomain}} {{#if this.ghostPaths.subdir}}{{this.ghostPaths.subdir}} {{/if}}{{@post.slug}}</div>
<div class="gh-seo-preview-title">{{this.seoTitle}}</div>
<div class="gh-seo-preview-title">{{truncate this.seoTitle 60}}</div>
<div class="gh-seo-preview-desc">{{this.seoDescription}}</div>
</div>
</div>

View file

@ -234,6 +234,10 @@
line-height: 1.35em;
}
.settings-menu-content .gh-seo-preview-title {
white-space: inherit;
}
.settings-menu-content .CodeMirror {
height: 170px;
min-height: 170px;