Updated post analytics mentions empty state

refs https://github.com/TryGhost/Team/issues/2575
This commit is contained in:
Djordje Vlaisavljevic 2023-02-23 15:44:21 +00:00
parent c33f30a3e0
commit 5172d07238
3 changed files with 11 additions and 5 deletions

View File

@ -129,7 +129,7 @@
{{/if}}
{{#if this.showMentions }}
<div class="gh-post-analytics-box gh-post-analytics-mentions">
<div class="gh-post-analytics-box gh-post-analytics-mentions {{unless this.showLinks "is-full-width"}}">
<h3 class="gh-post-analytics-mentions-header">Mentions</h3>
<div class="gh-post-analytics-mentions-list">
{{#if this.mentions}}
@ -146,9 +146,11 @@
</div>
{{/if}}
</div>
<div class="gh-dashboard-list-footer">
<LinkTo @route="posts.mentions" @model={{this.post.id}}>View all mentions &rarr;</LinkTo>
</div>
{{#if this.mentions}}
<div class="gh-dashboard-list-footer">
<LinkTo @route="posts.mentions" @model={{this.post.id}}>View all mentions &rarr;</LinkTo>
</div>
{{/if}}
</div>
{{/if}}
</div>

View File

@ -1914,6 +1914,10 @@
justify-content: space-between;
}
.gh-post-analytics-mentions.is-full-width {
display: none;
}
.gh-post-analytics-mentions-header {
font-size: 1.55rem;
font-weight: 700;

View File

@ -28,7 +28,7 @@
{{/if}}
</h2>
{{#if this.post }}
{{#if (and this.post this.mentionsInfinityModel)}}
<div class="gh-post-analytics-meta">
<div class="gh-post-analytics-meta-text">
This post was mentioned in: