From c0e1673b14838284843eb7aa55ef4d617669799d Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 25 Apr 2018 01:44:24 -0400 Subject: [PATCH] Use a fixed height for the image upload and delete buttons because the aspect ratio was behaving strangely on mobile --- resources/assets/sass/dashboard.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/sass/dashboard.scss b/resources/assets/sass/dashboard.scss index b695db5..dd276c4 100644 --- a/resources/assets/sass/dashboard.scss +++ b/resources/assets/sass/dashboard.scss @@ -836,9 +836,9 @@ body { } .image-upload-button, .image-delete-button { - @include aspect-ratio(1, 1); display: block; width: 40px; + height: 40px; min-height: 0; border: 1px solid darken($c-dashboard-light, 14%); border-radius: 3px; @@ -863,7 +863,7 @@ body { .image-delete-button { background-image: url("/img/dashboard/trash-alt.svg"); opacity: 1; - transition: background-color 150ms, opacity 150ms; + transition: background-color 150ms, opacity 150ms; &.inactive { opacity: 0.35;