Skip to content

Commit 744680b

Browse files
committed
Upgrade to release v2.7.0
1 parent 235fdc7 commit 744680b

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

CHANGE.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version 2.7.0
44

55
1. Set release to stable in composer.json.
66
2. enh #48: Trigger `fileloaded` event when `showPreview` is `false`.
7+
3. enh #49: Set image preview dimensions to auto fit and center
78

89
version 2.6.0
910
=============

css/fileinput.css

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
padding: 6px;
9494
float: left;
9595
text-align: center;
96+
vertical-align: middle;
9697
}
9798

9899
.file-preview-frame:hover {

css/fileinput.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/fileinput.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
'</div>',
109109
};
110110
var defaultPreviewSettings = {
111-
image: {width: "auto", height: "160px"},
111+
image: {width: "100%", height: "160px"},
112112
html: {width: "320px", height: "180px"},
113113
text: {width: "160px", height: "160px"},
114114
video: {width: "320px", height: "240px"},

0 commit comments

Comments
 (0)