浏览代码

优化普通文件图片预览大小

Karson 5 年之前
父节点
当前提交
1d37f23a5e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/assets/js/backend/general/attachment.js

+ 1 - 1
public/assets/js/backend/general/attachment.js

@@ -170,7 +170,7 @@ define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefin
                         var style = row.storage === 'upyun' ? '!/fwfh/120x90' : '';
                         return '<a href="' + row.fullurl + '" target="_blank"><img src="' + row.fullurl + style + '" alt="" style="max-height:90px;max-width:120px"></a>';
                     } else {
-                        return '<a href="' + row.fullurl + '" target="_blank"><img src="' + Fast.api.fixurl("ajax/icon") + "?suffix=" + row.imagetype + '" alt=""></a>';
+                        return '<a href="' + row.fullurl + '" target="_blank"><img src="' + Fast.api.fixurl("ajax/icon") + "?suffix=" + row.imagetype + '" alt="" style="max-height:90px;max-width:120px"></a>';
                     }
                 },
                 url: function (value, row, index) {