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

Merge pull request #6204 from kevinkucharczyk/unable-to-remove-small-background-image

Fix hidden delete button in image uploader for short images
This commit is contained in:
Kevin Ansfield 2015-12-15 13:54:32 +00:00
commit 53cdb4398b

View file

@ -33,7 +33,6 @@ let UploadUi = function ($dropzone, settings) {
let animateDropzone = ($img) => {
$dropzone.animate({opacity: 0}, 250, () => {
$dropzone.removeClass('image-uploader').addClass('pre-image-uploader');
$dropzone.css({minHeight: 0});
this.removeExtras();
$dropzone.animate({height: $img.height()}, 250, () => {
showImage($img.width(), $img.height());