Jelajahi Sumber

Correct full screen preview and piexif dependency fix #1286 fix #1287

Kartik Visweswaran 6 tahun lalu
induk
melakukan
1005ed1234
6 mengubah file dengan 7 tambahan dan 28 penghapusan
  1. 2 0
      CHANGE.md
  2. 2 14
      css/fileinput.css
  3. 0 0
      css/fileinput.min.css
  4. 1 1
      js/fileinput.js
  5. 0 0
      js/fileinput.min.js
  6. 2 13
      scss/fileinput.scss

+ 2 - 0
CHANGE.md

@@ -5,6 +5,8 @@ Change Log: `bootstrap-fileinput`
 
 
 **Date:** _work in process_
 **Date:** _work in process_
 
 
+- (enh #1287): Correct full screen modal styling.
+- (enh #1286): Default `autoOrientImage` to `false`.
 - (bug #1282): Allow `filebrowse` event to be prevented.
 - (bug #1282): Allow `filebrowse` event to be prevented.
 - (enh #1279): Enhance `usePdfRenderer` callback check to detect android phones.
 - (enh #1279): Enhance `usePdfRenderer` callback check to detect android phones.
 - Correct nuget batch file.
 - Correct nuget batch file.

+ 2 - 14
css/fileinput.css

@@ -407,27 +407,15 @@
     opacity: 0.65;
     opacity: 0.65;
 }
 }
 
 
-.file-zoom-fullscreen.modal {
-    position: fixed;
-    top: 0;
-    right: 0;
-    bottom: 0;
-    left: 0;
-}
-
 .file-zoom-fullscreen .modal-dialog {
 .file-zoom-fullscreen .modal-dialog {
-    position: fixed;
+    min-width: 100%;
     margin: 0;
     margin: 0;
-    padding: 0;
-    width: 100%;
-    height: 100%;
-    max-width: 100%;
-    max-height: 100%;
 }
 }
 
 
 .file-zoom-fullscreen .modal-content {
 .file-zoom-fullscreen .modal-content {
     border-radius: 0;
     border-radius: 0;
     box-shadow: none;
     box-shadow: none;
+    min-height: 100vh;
 }
 }
 
 
 .file-zoom-fullscreen .modal-body {
 .file-zoom-fullscreen .modal-body {

File diff ditekan karena terlalu besar
+ 0 - 0
css/fileinput.min.css


+ 1 - 1
js/fileinput.js

@@ -4268,7 +4268,7 @@
         showUploadedThumbs: true,
         showUploadedThumbs: true,
         browseOnZoneClick: false,
         browseOnZoneClick: false,
         autoReplace: false,
         autoReplace: false,
-        autoOrientImage: true, // for JPEG images based on EXIF orientation tag
+        autoOrientImage: false, // if `true` applicable for JPEG images only
         required: false,
         required: false,
         rtl: false,
         rtl: false,
         hideThumbnailContent: false,
         hideThumbnailContent: false,

File diff ditekan karena terlalu besar
+ 0 - 0
js/fileinput.min.js


+ 2 - 13
scss/fileinput.scss

@@ -539,25 +539,14 @@ input[type=file].file-loading {
 }
 }
 
 
 .file-zoom-fullscreen {
 .file-zoom-fullscreen {
-    &.modal {
-        position: fixed;
-        top: 0;
-        right: 0;
-        bottom: 0;
-        left: 0;
-    }
     .modal-dialog {
     .modal-dialog {
-        position: fixed;
+        min-width: 100%;
         margin: 0;
         margin: 0;
-        padding: 0;
-        width: 100%;
-        height: 100%;
-        max-width: 100%;
-        max-height: 100%;
     }
     }
     .modal-content {
     .modal-content {
         border-radius: 0;
         border-radius: 0;
         box-shadow: none;
         box-shadow: none;
+        min-height: 100vh;
     }
     }
     .modal-body {
     .modal-body {
         overflow-y: auto;
         overflow-y: auto;

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini