0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Fixed error message display bug in video card

No ref
This commit is contained in:
Sanne de Vries 2023-01-13 09:55:24 +01:00
parent 14f282d640
commit 1645f551bc
2 changed files with 15 additions and 9 deletions

View file

@ -2830,9 +2830,10 @@ button.emoji-picker__category-button.active {
align-items: center;
max-width: 60%;
height: auto;
margin-top: 1.2rem;
color: var(--red);
font-family: "Inter", -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Droid Sans,Helvetica Neue,sans-serif;
font-size: 1.5rem;
font-size: 1.45rem;
letter-spacing: 0;
font-weight: 600;
line-height: 1.6em;

View file

@ -54,12 +54,6 @@
{{#if (or uploader.errors uploader.isUploading (not @payload.src))}}
<div class="relative miw-100 flex items-center justify-center {{unless @payload.src "kg-media-placeholder ba b--whitegrey bg-whitegrey-l2" "absolute absolute--fill bg-white-50"}}">
{{#if uploader.errors}}
<span class="kg-upload-error">
{{get uploader.errors "0.message"}}
</span>
{{/if}}
{{#if this.isDraggedOver}}
<span class="db center sans-serif fw7 f7 middarkgrey">
Drop it like it's hot 🔥
@ -70,6 +64,11 @@
<button class="flex flex-column items-center center sans-serif fw4 f7 middarkgrey pa16 pt14 pb14 kg-image-button" type="button" {{on "click" this.triggerVideoFileDialog}}>
{{svg-jar "film-camera" class="kg-placeholder-video"}}
<span class="mt4 kg-upload-placeholder-text">Click to select a video</span>
{{#if uploader.errors}}
<span class="kg-upload-error">
{{get uploader.errors "0.message"}}
</span>
{{/if}}
</button>
{{/if}}
</div>
@ -174,13 +173,19 @@
/>
</div>
</div>
{{#if uploader.errors}}
{{#if true}}
<div class="kg-settings-panel-control-info">
<span class="red">The file type you uploaded is not supported. Please use .MP4, .WEBM, .OGV</span>
</div>
{{/if}}
{{!-- {{#if uploader.errors}}
<div class="kg-settings-panel-control-info">
{{#each uploader.errors as |error|}}
<span class="red">{{error.message}}</span>
{{/each}}
</div>
{{/if}}
{{/if}} --}}
</div>
{{/unless}}
</GhUploader>