IMPR: Sidebar

This commit is contained in:
Tony Air 2020-07-30 17:59:24 +07:00
parent e65f349637
commit 0959559d61
7 changed files with 8 additions and 15 deletions

2
dist/css/app.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/js/app.js vendored

File diff suppressed because one or more lines are too long

View File

@ -79,13 +79,6 @@
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
*/
/**
* Sticky Sidebar JavaScript Plugin.
* @version 3.3.1
* @author Ahmed Bouhuolia <a.bouhuolia@gmail.com>
* @license The MIT License (MIT)
*/
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1

2
dist/js/app.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -77,7 +77,7 @@
"eslint": "^4.19.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jquery": "^1.5.1",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react": "^7.20.5",
"exports-loader": "^0.7.0",
"favicons-webpack-plugin": "0.0.9",
"file-loader": "^5.1.0",
@ -110,7 +110,7 @@
"svg-url-loader": "^2.3.3",
"terser-webpack-plugin": "^2.3.7",
"url-loader": "^0.6.2",
"webpack": "^4.43.0",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0",
"webpack-manifest-plugin": "^1.3.2",

View File

@ -53,9 +53,9 @@ const SidebarUI = (($) => {
$innerWrapper.attr('style', '');
}else if(scrollPos >= (contentOffset + contentOffsetHeight - $innerWrapper[0].offsetHeight)){
// bottom pos
$innerWrapper.attr('style', `position:absolute;bottom:${fontSize}px`);
$innerWrapper.attr('style', `position:absolute;bottom:${fontSize}px`);
}else {
// scrolled pos
// scrolled pos
$innerWrapper.attr('style', `position:fixed;top:${fontSize}px;width:${sidebarWidth}px`);
}