mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-13 21:31:15 +01:00
de2268ffab
Close #24195
Some of the changes are taken from my another fix
f07b0de997
in #20147 (although that PR was discarded ....)
The bug is:
1. The old code doesn't handle `removedfile` event correctly
2. The old code doesn't provide attachments for type=CommentTypeReview
This PR doesn't intend to refactor the "upload" code to a perfect state
(to avoid making the review difficult), so some legacy styles are kept.
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
53 lines
1 KiB
CSS
53 lines
1 KiB
CSS
.ui .field .dropzone {
|
|
border: 2px dashed var(--color-secondary);
|
|
background: none;
|
|
box-shadow: none;
|
|
padding: 0;
|
|
border-radius: 4px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.ui .field .dropzone .dz-message {
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.dropzone .dz-button {
|
|
color: var(--color-text-light) !important;
|
|
}
|
|
|
|
.dropzone:hover .dz-button {
|
|
color: var(--color-text) !important;
|
|
}
|
|
|
|
.dropzone .dz-error-message {
|
|
top: 145px !important;
|
|
}
|
|
|
|
.dropzone .dz-image {
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
.dropzone .dz-image img {
|
|
max-width: 100% !important;
|
|
max-height: 100% !important;
|
|
object-fit: contain !important;
|
|
}
|
|
|
|
.dropzone .dz-preview.dz-image-preview,
|
|
.dropzone-attachments .thumbnails img {
|
|
background: transparent !important;
|
|
}
|
|
|
|
.dropzone-attachments .thumbnails img {
|
|
height: 120px !important;
|
|
width: 120px !important;
|
|
object-fit: contain !important;
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.dropzone .dz-preview:hover .dz-image img {
|
|
filter: opacity(0.5) !important;
|
|
}
|