فهرست منبع

Updates to text thumbnail default height - fixes #381

Kartik Visweswaran 9 سال پیش
والد
کامیت
3634cae55d
3فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  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"},

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
js/fileinput.min.js


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است