1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

Fixed image caption design bugs in Koenig

no refs.
- added side padding for alt and caption input fields
- fixed text color bug of alt toggle button
This commit is contained in:
Peter Zimon 2020-08-27 15:21:11 +02:00
parent 0b772aef9f
commit 25f4b60d9c
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<input
type="text"
placeholder={{this.placeholder}}
class="miw-100 tc bn form-text bg-transparent tracked-2"
class="miw-100 tc bn form-text bg-transparent tracked-2 pr8 pl8"
name="alt"
value={{this.alt}}
{{on "input" this.onInput}}

View file

@ -1,7 +1,7 @@
<KoenigBasicHtmlInput
@html={{this.caption}}
@placeholder={{if this.isFocused "" this.placeholder}}
@class="miw-100 tc bn form-text bg-transparent"
@class="miw-100 tc bn form-text bg-transparent pr8 pl8"
@name="caption"
@onChange={{action this.update}}
@onFocus={{action (mut this.isFocused) true}}

View file

@ -80,7 +80,7 @@
{{#if this.isSelected}}
<button
title="Toggle between editing alt text and caption"
class="absolute right-0 bottom-0 ma2 pl1 pr1 ba br3 f8 sans-serif fw4 lh-title tracked-2 {{if this.isEditingAlt "bg-blue b--blue blue" "bg-white b--midlightgrey midlightgrey"}}"
class="absolute right-0 bottom-0 ma2 pl1 pr1 ba br3 f8 sans-serif fw4 lh-title tracked-2 {{if this.isEditingAlt "bg-blue b--blue white" "bg-white b--midlightgrey midlightgrey"}}"
{{on "click" this.toggleAltEditing passive=true}}
>
Alt