Compare commits

...

1 Commits

Author SHA1 Message Date
Frédéric Péters dffc069e34 scss: force height of file input when it displays a thumbnail (#40712)
gitea-wip/publik-base-theme/pipeline/head There was a failure building this commit Details
gitea/publik-base-theme/pipeline/head Something is wrong with the build of this commit Details
2020-03-13 10:43:01 +01:00
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 {
@ -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;
}