scss: force height of file input when it displays a thumbnail (#40712)

This commit is contained in:
Frédéric Péters 2020-03-13 10:00:21 +01:00
parent 4e8bb06735
commit c876a38fdd
1 changed files with 9 additions and 1 deletions

View File

@ -439,7 +439,6 @@ span.geoloc-error {
.fileinfo {
line-height: 1.5em;
height: 100%;
}
div.fileinfo a.remove {
@ -596,6 +595,15 @@ div.file-upload-widget {
}
&.widget-readonly {
div.file-button {
// sizing is a bit complicated for image thumbnails, we have
// .file-button > .fileinfo > img
// .file-button is set to a fixed height
// .fileinfo is set to use all of it (height: 100%)
// img is set to fill whatever is possible (max-height: 100%)
height: 150px;
.fileinfo.thumbnail {
height: 100%;
}
div.widget-message {
display: none;
}