From: Vincent Vanwaelscappel Date: Thu, 27 Jun 2019 17:53:35 +0000 (+0200) Subject: #2843 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=de735f578b7686a66bddaf9cd267632b07db2db7;p=cubist_cms-back.git #2843 --- diff --git a/src/app/Magic/Models/CubistMagicAbstractModel.php b/src/app/Magic/Models/CubistMagicAbstractModel.php index 4252fe7..2e679c5 100644 --- a/src/app/Magic/Models/CubistMagicAbstractModel.php +++ b/src/app/Magic/Models/CubistMagicAbstractModel.php @@ -78,6 +78,7 @@ class CubistMagicAbstractModel extends Model implements HasMedia parent::boot(); } + public function __construct(array $attributes = []) { $this->setFields(); @@ -457,8 +458,8 @@ class CubistMagicAbstractModel extends Model implements HasMedia public function registerMediaConversions(Media $media = null) { $this->addMediaConversion('backpack_thumb') - ->width(368) - ->height(232) + ->width(120) + ->height(120) ->sharpen(10) ->optimize(); } diff --git a/src/resources/views/fields/dropzone_media.blade.php b/src/resources/views/fields/dropzone_media.blade.php index 0d57047..213106b 100644 --- a/src/resources/views/fields/dropzone_media.blade.php +++ b/src/resources/views/fields/dropzone_media.blade.php @@ -88,19 +88,20 @@ $collection = old(square_brackets_to_dots($field['name'])) ?? $field['value'] ?? .dropzone .dz-preview [data-dz-remove] { position: absolute; - top: -15px; - right: -15px; - width: 30px; - height: 30px; + top: -13px; + right: -13px; + width: 26px; + height: 26px; border-radius: 50%; background: #b50005; color: #fff; text-align: center; font-weight: 700; - font-size: 28px; + font-size: 24px; line-height: 1em; z-index:11; transform: rotate(45deg); + cursor: pointer; } .dropzone .dz-preview .dz-image {