scss: force height of file input when it displays a thumbnail (#40712)
This commit is contained in:
parent
41caec29f5
commit
dffc069e34
|
@ -439,7 +439,6 @@ span.geoloc-error {
|
|||
|
||||
.fileinfo {
|
||||
line-height: 1.5em;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
div.fileinfo a.remove {
|
||||
|
@ -595,6 +594,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue