0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Updated the product card first version

refs https://github.com/TryGhost/Team/issues/1233

- added a way to remove the product image
This commit is contained in:
Thibaut Patel 2021-11-29 18:29:33 +01:00
parent 93dba3cb9a
commit ad90ad0236

View file

@ -33,7 +33,8 @@
>
<div class="relative{{unless (or this.previewSrc @payload.productImageSrc) " bg-whitegrey-l2"}}">
{{#if (or this.previewSrc @payload.productImageSrc)}}
<img src={{or this.previewSrc @payload.productImageSrc}} class="{{kg-style this.kgImgStyle sidebar=this.ui.hasSideNav}}" alt={{@payload.alt}}>
<img src={{or this.previewSrc @payload.productImageSrc}} class="{{kg-style this.kgImgStyle sidebar=this.ui.hasSideNav}}">
<button class="absolute gh-btn gh-btn-grey gh-btn-icon" style="top: 10px; right: 10px; font-size: 1.2rem;" {{action "resetSrcs"}}><span>{{svg-jar "koenig/kg-trash"}}</span></button>
{{#if this.isDraggedOver}}
<div class="absolute absolute--fill flex items-center bg-black-60 pe-none">
<span class="db center sans-serif fw7 f7 white">