File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -999,6 +999,9 @@ async function initRepository() {
999
999
dictFileTooBig : $dropzone . data ( 'file-too-big' ) ,
1000
1000
dictRemoveFile : $dropzone . data ( 'remove-file' ) ,
1001
1001
timeout : 0 ,
1002
+ thumbnailMethod : 'contain' ,
1003
+ thumbnailWidth : 480 ,
1004
+ thumbnailHeight : 480 ,
1002
1005
init ( ) {
1003
1006
this . on ( 'success' , ( file , data ) => {
1004
1007
filenameDict [ file . name ] = {
@@ -2624,6 +2627,9 @@ $(document).ready(async () => {
2624
2627
dictFileTooBig : $dropzone . data ( 'file-too-big' ) ,
2625
2628
dictRemoveFile : $dropzone . data ( 'remove-file' ) ,
2626
2629
timeout : 0 ,
2630
+ thumbnailMethod : 'contain' ,
2631
+ thumbnailWidth : 480 ,
2632
+ thumbnailHeight : 480 ,
2627
2633
init ( ) {
2628
2634
this . on ( 'success' , ( file , data ) => {
2629
2635
filenameDict [ file . name ] = data . uuid ;
Original file line number Diff line number Diff line change 43
43
object-fit : contain !important ;
44
44
margin-bottom : 0 !important ;
45
45
}
46
+
47
+ .dropzone .dz-preview :hover .dz-image img {
48
+ filter : opacity (.5 ) !important ;
49
+ }
You can’t perform that action at this time.
0 commit comments