0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

Added Lexical indicator to post list

Closes https://github.com/TryGhost/Team/issues/1926
This commit is contained in:
Sanne de Vries 2022-09-19 15:40:19 +01:00
parent 242850b7da
commit b2d449fecf
5 changed files with 21 additions and 9 deletions

View file

@ -48,6 +48,9 @@
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-title">
<h3 class="gh-content-entry-title">
{{@post.title}}
{{#if @post.lexical}}
<span class="gh-lexical-indicator">L</span>
{{/if}}
</h3>
{{#unless @hideAuthor }}
<p class="gh-content-entry-meta">
@ -65,6 +68,9 @@
<span {{css-transition "anim-fade-in-scale"}}>on {{gh-format-post-time @post.updatedAtUTC "D MMM YYYY"}}</span>
{{/if}}
</span>
{{!-- {{#if @post.lexical}}
<span class="gh-content-entry-date"> Lexical</span>
{{/if}} --}}
</p>
{{#if (not-eq this.settings.membersSignupAccess "none")}}
<p class="gh-content-entry-status">

View file

@ -30,6 +30,9 @@
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-title">
<h3 class="gh-content-entry-title">
{{@post.title}}
{{#if @post.lexical}}
<span class="gh-lexical-indicator">L</span>
{{/if}}
</h3>
{{#unless @hideAuthor }}
<p>

View file

@ -201,6 +201,12 @@
padding-left: 10px;
}
.gh-post-list-title .gh-lexical-indicator {
margin: 2px 8px 0;
padding: 0 8px;
font-size: 1.2rem;
}
.gh-post-list-external {
width: 13px;
height: 13px;

View file

@ -629,14 +629,12 @@ body[data-user-is-dragging] .gh-editor-feature-image-dropzone {
}
.gh-lexical-indicator {
position: absolute;
left: 30px;
bottom: 30px;
margin: 1px 0 0 8px;
padding: 1px 8px;
background: var(--black);
color: var(--white);
background: var(--whitegrey-d1);
color: var(--black);
font-family: var(--font-family-mono);
font-size: 1.3rem;
font-size: 1.25rem;
border-radius: var(--border-radius);
}

View file

@ -82,13 +82,12 @@
@postType={{this.post.displayName}}
/>
<a href="https://github.com/TryGhost/Koenig/tree/main/packages/koenig-lexical" target="_blank" rel="noopener noreferrer" class="gh-lexical-indicator">Lexical</a>
<div class="gh-editor-wordcount-container">
<div class="gh-editor-wordcount">
{{gh-pluralize this.wordCount.wordCount "word"}}
</div>
<a href="https://ghost.org/help/using-the-editor/" class="flex" target="_blank" rel="noopener noreferrer">{{svg-jar "help"}}</a>
<a href="https://github.com/TryGhost/Koenig/tree/main/packages/koenig-lexical" target="_blank" rel="noopener noreferrer" class="gh-lexical-indicator">Lexical</a>
{{!-- <a href="https://ghost.org/help/using-the-editor/" class="flex" target="_blank" rel="noopener noreferrer">{{svg-jar "help"}}</a> --}}
</div>
</GhEditor>