Changed tooltip on hovering schedule state in post list from uppercase to capitalised

This commit is contained in:
Sanne de Vries 2020-12-11 09:49:07 +01:00
parent 602e619cfb
commit 26fa14ea1f
3 changed files with 4 additions and 3 deletions

View File

@ -60,7 +60,7 @@
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-status" @title="Edit this {{@post.displayName}}">
<div class="flex items-center">
{{#if @post.isScheduled}}
<span class="gh-content-status-draft gh-badge nowrap" title="Scheduled" data-tooltip="{{this.scheduledText}} to {{capitalize @post.emailRecipientFilter}} members">
<span class="gh-content-status-draft gh-badge nowrap" title="Scheduled" data-tooltip="{{capitalize this.scheduledText}} to {{@post.emailRecipientFilter}} members">
Scheduled
</span>
{{/if}}

View File

@ -38,9 +38,9 @@ export function formatPostTime(timeago, {timezone = 'ect/UTC', draft, scheduled,
return time.format(`HH:mm [${utcOffset}] [Yesterday]`);
}
// if scheduled for tomorrow, render the time + Tomorrow
// if scheduled for tomorrow, render the time + tomorrow
if (scheduled && time.isSame(now.clone().add(1, 'days').startOf('day'), 'day')) {
return time.format(`[at] HH:mm [${utcOffset}] [Tomorrow]`);
return time.format(`[at] HH:mm [${utcOffset}] [tomorrow]`);
}
// Else, render just the date if published, or the time & date if scheduled

View File

@ -194,6 +194,7 @@ button, .btn-base {
font-weight: 400;
line-height: 1.4em;
letter-spacing: 0.2px;
text-transform: initial;
transform: translate(-50%, 5px);
}