Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit a67dffc

Browse files
committed
Koenig - Design refinements for word count
refs TryGhost/Ghost#9724 - word count is displayed in the bottom right of the screen regardless of screen size - for smaller screen sizes the word count display is adjusted - minor visual tweaks and refinements
1 parent d5862bf commit a67dffc

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

app/templates/editor.hbs

+8-16
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,12 @@
88
<header class="gh-editor-header br2 pe-none {{editor.headerClass}} {{if infoMessage "bg-white-90"}}">
99
<div class="flex items-center br2 h9 pa2 pl4 pr4 pe-auto {{unless infoMessage "bg-white-90"}}">
1010
<div class="flex items-baseline">
11-
<span class="fw4 darkgrey-l2 pl4">
11+
<span class="fw4 darkgrey-l2">
1212
{{gh-editor-post-status
1313
post=post
1414
isSaving=(or autosave.isRunning saveTasks.isRunning)
1515
}}
1616
</span>
17-
{{!-- editor.headerClass is only set on small screens with opaque tpo bar --}}
18-
{{#if (and editor.headerClass wordCount)}}
19-
<span class="pl3 f-small midgrey">
20-
{{pluralize wordCount.wordCount "word"}}
21-
</span>
22-
{{/if}}
2317
</div>
2418
{{#gh-scheduled-post-countdown post=post as |post countdown|}}
2519
<time datetime="{{post.publishedAtUTC}}" class="green f8 nudge-bottom--1 ml3" data-test-schedule-countdown>
@@ -186,15 +180,13 @@
186180

187181
{{/if}} {{!-- end Koenig conditional --}}
188182

189-
{{#unless editor.headerClass}}
190-
{{#if wordCount}}
191-
<div class="absolute right-6 bottom-4 pa1 pl4 pr4 br3 bg-white-90">
192-
<span class="f-small midgrey">
193-
{{pluralize wordCount.wordCount "word"}}
194-
</span>
195-
</div>
196-
{{/if}}
197-
{{/unless}}
183+
{{#if wordCount}}
184+
<div class="absolute flex items-center br3 bg-white-90 {{if editor.headerClass "right-4 bottom-2 h7 pa1 pl2 pr2" "right-6 bottom-6 h9 pa1 pl4 pr4"}}">
185+
<span class="midgrey {{if editor.headerClass "f-supersmall" "f8"}}">
186+
{{pluralize wordCount.wordCount "word"}}
187+
</span>
188+
</div>
189+
{{/if}}
198190
{{/gh-editor}}
199191

200192
{{#if showDeletePostModal}}

0 commit comments

Comments
 (0)