]> _ Git - cubist_cms-back.git/commitdiff
#2843
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 27 Jun 2019 17:53:35 +0000 (19:53 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 27 Jun 2019 17:53:35 +0000 (19:53 +0200)
src/app/Magic/Models/CubistMagicAbstractModel.php
src/resources/views/fields/dropzone_media.blade.php

index 4252fe7c21483c239c8754eaba595c6fe11a2cdd..2e679c5ca0ce25d8ae255160b037a8bd2c7e34ed 100644 (file)
@@ -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();
     }
index 0d570478207e9fd70cf9c836737b01c3bf74b049..213106bd219e518662b9ed1b1b27119a2b1b4ed2 100644 (file)
@@ -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 {