mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 07:23:56 +01:00
[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:
parent
cf45567ca6
commit
b97ab04e8f
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue