@mjhls/mjh-framework 1.0.855 → 1.0.856
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
1
|
+
# mjh-framework v. 1.0.856
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
|
@@ -1335,7 +1335,11 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
1335
1335
|
var thumbSize = void 0;
|
|
1336
1336
|
var scrollerVisible = false;
|
|
1337
1337
|
if (window.innerWidth > 1399) {
|
|
1338
|
-
|
|
1338
|
+
if (props.data.slides && props.data.slides.length < 3) {
|
|
1339
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 2 - 40);
|
|
1340
|
+
} else {
|
|
1341
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 3 - 40);
|
|
1342
|
+
}
|
|
1339
1343
|
if (props.data.slides.length > 3) {
|
|
1340
1344
|
scrollerVisible = true;
|
|
1341
1345
|
}
|
|
@@ -1328,7 +1328,11 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
1328
1328
|
var thumbSize = void 0;
|
|
1329
1329
|
var scrollerVisible = false;
|
|
1330
1330
|
if (window.innerWidth > 1399) {
|
|
1331
|
-
|
|
1331
|
+
if (props.data.slides && props.data.slides.length < 3) {
|
|
1332
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 2 - 40);
|
|
1333
|
+
} else {
|
|
1334
|
+
thumbSize = Math.floor(viewableWindow.current.clientWidth / 3 - 40);
|
|
1335
|
+
}
|
|
1332
1336
|
if (props.data.slides.length > 3) {
|
|
1333
1337
|
scrollerVisible = true;
|
|
1334
1338
|
}
|