Skip to content

Commit f4a50f7

Browse files
committed
メディアのカスタムフィールドの表示テンプレートを修正
1 parent 3386eca commit f4a50f7

File tree

6 files changed

+237
-217
lines changed

6 files changed

+237
-217
lines changed

bundle.js

Lines changed: 2 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle.js.LICENSE.txt

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
object-assign
3+
(c) Sindre Sorhus
4+
@license MIT
5+
*/
6+
7+
/*!
8+
Copyright (c) 2017 Jed Watson.
9+
Licensed under the MIT License (MIT), see
10+
http://jedwatson.github.io/classnames
11+
*/
12+
13+
/*!
14+
* The buffer module from node.js, for the browser.
15+
*
16+
* @author Feross Aboukhadijeh <[email protected]> <http://feross.org>
17+
* @license MIT
18+
*/
19+
20+
/** @license React v16.5.2
21+
* react-dom-server.browser.production.min.js
22+
*
23+
* Copyright (c) Facebook, Inc. and its affiliates.
24+
*
25+
* This source code is licensed under the MIT license found in the
26+
* LICENSE file in the root directory of this source tree.
27+
*/
28+
29+
/** @license React v16.5.2
30+
* react-dom.production.min.js
31+
*
32+
* Copyright (c) Facebook, Inc. and its affiliates.
33+
*
34+
* This source code is licensed under the MIT license found in the
35+
* LICENSE file in the root directory of this source tree.
36+
*/
37+
38+
/** @license React v16.5.2
39+
* react.production.min.js
40+
*
41+
* Copyright (c) Facebook, Inc. and its affiliates.
42+
*
43+
* This source code is licensed under the MIT license found in the
44+
* LICENSE file in the root directory of this source tree.
45+
*/
46+
47+
/** @license React v16.5.2
48+
* schedule.production.min.js
49+
*
50+
* Copyright (c) Facebook, Inc. and its affiliates.
51+
*
52+
* This source code is licensed under the MIT license found in the
53+
* LICENSE file in the root directory of this source tree.
54+
*/

lib/components/field-confirm-source.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,14 @@ function (_Component) {
135135
"data-focus-x": "{".concat(item.name, "@focalX}"),
136136
"data-focus-y": "{".concat(item.name, "@focalY}"),
137137
alt: "{".concat(item.name, "@alt}"),
138-
src: "%{MEDIA_ARCHIVES_DIR}{".concat(item.name, "@path}[resizeImg(").concat(item.focusImageWidth, ")]")
138+
src: "%{MEDIA_ARCHIVES_DIR}{".concat(item.name, "@path}[resizeImg(").concat(item.focusImageWidth, ")]"),
139+
width: item.focusImageWidth,
140+
height: "{".concat(item.name, "@ratio}[getHeightFromRatio(").concat(item.focusImageWidth, ")]")
139141
})), !item.useFocusImage && _react.default.createElement("img", {
140142
alt: "{".concat(item.name, "@alt}"),
141-
src: "%{MEDIA_ARCHIVES_DIR}{".concat(item.name, "@path}")
143+
src: "%{MEDIA_ARCHIVES_DIR}{".concat(item.name, "@path}"),
144+
width: "300",
145+
height: "{".concat(item.name, "@ratio}[getHeightFromRatio(300)]")
142146
}), "<!-- BEGIN_IF [{".concat(item.name, "@link}/nem] -->")), "<!-- END_IF -->", "<!-- BEGIN_IF [{".concat(item.name, "@text}/nem] -->"), _react.default.createElement("p", null, "{".concat(item.name, "@text}")), '<!-- END_IF -->', '<!-- END_IF -->'));
143147
} else if (item.type === 'rich-editor') {
144148
return _react.default.createElement("tr", {

0 commit comments

Comments
 (0)