Ver código fonte

Fix #986: Image width parsing and styling enhancements

Kartik Visweswaran 8 anos atrás
pai
commit
794f14c085

+ 7 - 0
CHANGE.md

@@ -1,6 +1,13 @@
 Change Log: `bootstrap-fileinput`
 Change Log: `bootstrap-fileinput`
 =================================
 =================================
 
 
+## version 4.4.2
+
+**Date:** 28-May-2017
+
+- (enh #986): Image width parsing and styling enhancements.
+- (enh #981): Update Hungarian Translations.
+
 ## version 4.4.1
 ## version 4.4.1
 
 
 **Date:** 25-May-2017
 **Date:** 25-May-2017

+ 5 - 0
css/fileinput.css

@@ -92,6 +92,11 @@
     margin-bottom: 5px;
     margin-bottom: 5px;
 }
 }
 
 
+.file-preview-image {
+    font: 40px Impact, Charcoal, sans-serif;
+    color: green;
+}
+
 .krajee-default.file-preview-frame {
 .krajee-default.file-preview-frame {
     position: relative;
     position: relative;
     display: table;
     display: table;

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
css/fileinput.min.css


+ 0 - 1
js/fileinput.js

@@ -2908,7 +2908,6 @@
                 w2 = $preview.width();
                 w2 = $preview.width();
                 if (w1 > w2) {
                 if (w1 > w2) {
                     $img.css('width', '100%');
                     $img.css('width', '100%');
-                    $thumb.css('width', '97%');
                 }
                 }
                 params = {ind: i, id: previewId};
                 params = {ind: i, id: previewId};
                 self._checkDimensions(i, 'Small', $img, $thumb, fname, 'Width', params);
                 self._checkDimensions(i, 'Small', $img, $thumb, fname, 'Width', params);

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
js/fileinput.min.js


+ 1 - 0
themes/explorer/theme.css

@@ -171,6 +171,7 @@
 
 
     .theme-explorer .table .kv-file-content .file-preview-image {
     .theme-explorer .table .kv-file-content .file-preview-image {
         max-width: 100%;
         max-width: 100%;
+        font-size: 20px;
     }
     }
 
 
     .theme-explorer .file-details-cell {
     .theme-explorer .file-details-cell {

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
themes/explorer/theme.min.css


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff