[GITEA] Make filename accessible in dropzone

- In Forgejo you can upload files by drag n dropping them in selective
'zones', these are handled by
[dropzone](https://github.com/dropzone/dropzone). While waiting for it
to finish uploading, you can see the file's size and name.
- The name was conviently placed under the progress bar, so as an file
is uploading you couldn't see the filename anymore.
- This patch fixes that by simply moving the filename a few pixels down.
- Resolves https://codeberg.org/Codeberg/Community/issues/1104

(cherry picked from commit 58d500aafd)
This commit is contained in:
Gusted 2023-08-11 13:38:53 +02:00 committed by Earl Warren
parent cf45567ca6
commit b97ab04e8f
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -51,3 +51,12 @@
.dropzone .dz-preview:hover .dz-image img {
filter: opacity(0.5) !important;
}
.dropzone .dz-preview.dz-image-preview .dz-filename {
/* Don't use margin or padding, as that will mess with the dimensions
* of the details div and thereby making the 'Cancel upload' button
* inaccessible to use.
*/
position: relative;
top: 2em;
}