Fix ghost icon modal and improve UI on mobile

pull/1/head
yflory 7 years ago
parent 60cbfb4281
commit 403b62f131

@ -617,12 +617,36 @@ span {
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
align-content: center; align-content: center;
overflow-y: auto;
.uploadFile { .uploadFile {
break-after: always; break-after: always;
page-break-after: always; page-break-after: always;
} }
} }
} }
@media screen and (max-height: @browser_media-not-big) {
.cp-modal {
& > p {
display: none;
}
& > div {
align-content: unset;
li {
height: 40px;
width: 90%;
display: flex;
align-items: center;
.fa {
font-size: 32px;
}
.name {
height: auto;
}
}
}
}
}
} }

@ -1691,7 +1691,7 @@ define([
$modal.find('.cp-modal').append($description); $modal.find('.cp-modal').append($description);
var $content = createNewPadIcons($modal, isInRoot); var $content = createNewPadIcons($modal, isInRoot);
$modal.find('.cp-modal').append($content); $modal.find('.cp-modal').append($content);
$modal.show(); window.setTimeout(function () { $modal.show(); });
addNewPadHandlers($modal, isInRoot); addNewPadHandlers($modal, isInRoot);
}); });
}; };

Loading…
Cancel
Save