mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Koenig - Avoid word count overlap with content
refs https://github.com/TryGhost/Ghost/issues/9724 - display word count/reading time in the top-left when the opaque top bar is present otherwise use the bottom-right
This commit is contained in:
parent
cc2e20a486
commit
2ea3de4b49
1 changed files with 12 additions and 1 deletions
|
@ -14,7 +14,8 @@
|
|||
isSaving=(or autosave.isRunning saveTasks.isRunning)
|
||||
}}
|
||||
</span>
|
||||
{{#if wordCount}}
|
||||
{{!-- editor.headerClass is only set on small screens with opaque tpo bar --}}
|
||||
{{#if (and editor.headerClass wordCount)}}
|
||||
<span class="pl3 f-small midgrey">
|
||||
{{wordCount.readingTime}} ({{pluralize wordCount.wordCount "word"}})
|
||||
</span>
|
||||
|
@ -184,6 +185,16 @@
|
|||
{{/if}}
|
||||
|
||||
{{/if}} {{!-- end Koenig conditional --}}
|
||||
|
||||
{{#unless editor.headerClass}}
|
||||
{{#if wordCount}}
|
||||
<div class="absolute right-8 bottom-6">
|
||||
<span class="pl3 f-small midgrey">
|
||||
{{wordCount.readingTime}} ({{pluralize wordCount.wordCount "word"}})
|
||||
</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
{{/gh-editor}}
|
||||
|
||||
{{#if showDeletePostModal}}
|
||||
|
|
Loading…
Add table
Reference in a new issue