@mjhls/mjh-framework 1.0.730-isiscroll → 1.0.730-isiscroll-c
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/dist/cjs/View.js +3 -3
- package/dist/esm/View.js +3 -3
- package/package.json +1 -1
package/dist/cjs/View.js
CHANGED
|
@@ -233,10 +233,10 @@ var ISI = function ISI(props) {
|
|
|
233
233
|
var article_body = document.getElementById('article__block');
|
|
234
234
|
var articleBottomPosition = article_body.getBoundingClientRect().bottom - window.innerHeight;
|
|
235
235
|
console.log(articleBottomPosition, bottomOfArticle);
|
|
236
|
-
if (articleBottomPosition <
|
|
236
|
+
if (articleBottomPosition < 65) {
|
|
237
237
|
setbottomOfArticle(true);
|
|
238
238
|
}
|
|
239
|
-
if (articleBottomPosition >
|
|
239
|
+
if (articleBottomPosition > 80) {
|
|
240
240
|
setbottomOfArticle(false);
|
|
241
241
|
}
|
|
242
242
|
};
|
|
@@ -326,7 +326,7 @@ var ISI = function ISI(props) {
|
|
|
326
326
|
React__default['default'].createElement(
|
|
327
327
|
'style',
|
|
328
328
|
{ jsx: true },
|
|
329
|
-
'\n #isi {\n position: fixed;\n z-index: 9999999;\n bottom: 0;\n left: 0;\n max-height: 10rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n transition: max-height 0.2s;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\n transition: bottom .5s , margin-top .
|
|
329
|
+
'\n #isi {\n position: fixed;\n z-index: 9999999;\n bottom: 0;\n left: 0;\n max-height: 10rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n transition: max-height 0.2s;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\n transition: bottom .5s , margin-top .0s, max-height .2s;\n }\n #isiContent {\n width: 100%;\n max-width: 1000px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n padding: 1rem;\n font-size: 1rem;\n }\n #isi::-webkit-scrollbar {\n display: none;\n }\n #isiToggle {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1rem;\n font-weight: bold;\n cursor: pointer;\n font-size: 1rem;\n }\n #isiToggle p {\n margin: 0;\n }\n '
|
|
330
330
|
)
|
|
331
331
|
);
|
|
332
332
|
};
|
package/dist/esm/View.js
CHANGED
|
@@ -223,10 +223,10 @@ var ISI = function ISI(props) {
|
|
|
223
223
|
var article_body = document.getElementById('article__block');
|
|
224
224
|
var articleBottomPosition = article_body.getBoundingClientRect().bottom - window.innerHeight;
|
|
225
225
|
console.log(articleBottomPosition, bottomOfArticle);
|
|
226
|
-
if (articleBottomPosition <
|
|
226
|
+
if (articleBottomPosition < 65) {
|
|
227
227
|
setbottomOfArticle(true);
|
|
228
228
|
}
|
|
229
|
-
if (articleBottomPosition >
|
|
229
|
+
if (articleBottomPosition > 80) {
|
|
230
230
|
setbottomOfArticle(false);
|
|
231
231
|
}
|
|
232
232
|
};
|
|
@@ -316,7 +316,7 @@ var ISI = function ISI(props) {
|
|
|
316
316
|
React.createElement(
|
|
317
317
|
'style',
|
|
318
318
|
{ jsx: true },
|
|
319
|
-
'\n #isi {\n position: fixed;\n z-index: 9999999;\n bottom: 0;\n left: 0;\n max-height: 10rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n transition: max-height 0.2s;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\n transition: bottom .5s , margin-top .
|
|
319
|
+
'\n #isi {\n position: fixed;\n z-index: 9999999;\n bottom: 0;\n left: 0;\n max-height: 10rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n transition: max-height 0.2s;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\n transition: bottom .5s , margin-top .0s, max-height .2s;\n }\n #isiContent {\n width: 100%;\n max-width: 1000px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n padding: 1rem;\n font-size: 1rem;\n }\n #isi::-webkit-scrollbar {\n display: none;\n }\n #isiToggle {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1rem;\n font-weight: bold;\n cursor: pointer;\n font-size: 1rem;\n }\n #isiToggle p {\n margin: 0;\n }\n '
|
|
320
320
|
)
|
|
321
321
|
);
|
|
322
322
|
};
|