Browse Source

Updates to text thumbnail default height - fixes #381

Kartik Visweswaran 9 years ago
parent
commit
3634cae55d
3 changed files with 3 additions and 3 deletions
  1. 1 1
      README.md
  2. 2 2
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 1 - 1
README.md

@@ -678,7 +678,7 @@ _object_ the format settings (width and height) for rendering each preview file
 {
     image: {width: "auto", height: "160px"},
     html: {width: "213px", height: "160px"},
-    text: {width: "160px", height: "160px"},
+    text: {width: "160px", height: "136px"},
     video: {width: "213px", height: "160px"},
     audio: {width: "213px", height: "80px"},
     flash: {width: "213px", height: "160px"},

+ 2 - 2
js/fileinput.js

@@ -287,7 +287,7 @@
             'title="{removeTitle}"{dataUrl}{dataKey}>{removeIcon}</button>\n',
         tActionUpload = '<button type="button" class="kv-file-upload {uploadClass}" title="{uploadTitle}">' +
             '   {uploadIcon}\n</button>\n',
-        tZoom =  '<button type="button" class="btn btn-default btn-sm btn-block" title="{zoomTitle}: {caption}" onclick="{dialog}">\n' +
+        tZoom =  '<button type="button" class="btn btn-default btn-xs btn-block" title="{zoomTitle}: {caption}" onclick="{dialog}">\n' +
             '   {zoomInd}\n' +
             '</button>\n',
         tGeneric = '<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}">\n' +
@@ -376,7 +376,7 @@
         defaultPreviewSettings = {
             image: {width: "auto", height: "160px"},
             html: {width: "213px", height: "160px"},
-            text: {width: "160px", height: "160px"},
+            text: {width: "160px", height: "136px"},
             video: {width: "213px", height: "160px"},
             audio: {width: "213px", height: "80px"},
             flash: {width: "213px", height: "160px"},

File diff suppressed because it is too large
+ 0 - 0
js/fileinput.min.js


Some files were not shown because too many files changed in this diff