Updated editor styles for before/after card

refs https://github.com/TryGhost/Team/issues/1249
This commit is contained in:
djordje vlaisavljevic 2021-12-15 09:32:09 +01:00
parent 2aae62c18d
commit 1d19f74ba8

View File

@ -62,12 +62,13 @@
{{on "change" this.removeFocus}} {{on "change" this.removeFocus}}
/> />
{{else}} {{else}}
<div class="overflow-hidden" style="width:49%; display: inline-block;"> <div class="overflow-hidden" style="width:49%; height: 100%; display: inline-block;">
{{#if @payload.beforeImage}} {{#if @payload.beforeImage}}
<img <img
class="kg-before-after-card-before-image" class="kg-before-after-card-before-image"
src={{@payload.beforeImage.src}} src={{@payload.beforeImage.src}}
width={{this.imageWidth}} width={{this.imageWidth}}
style="height: auto; object-fit: cover;"
/> />
{{else}} {{else}}
<button class="flex flex-column items-center center sans-serif fw4 f7 middarkgrey pa16 pt14 pb14 kg-image-button" {{on "click" this.selectBeforeImage}}> <button class="flex flex-column items-center center sans-serif fw4 f7 middarkgrey pa16 pt14 pb14 kg-image-button" {{on "click" this.selectBeforeImage}}>