File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,7 @@ export default {
1212 },
1313 sidebarMinimize () {
1414 document .body .classList .toggle (' sidebar-minimized' )
15- const sidebar = document .querySelector (' .sidebar-nav section' )
16- if (sidebar) {
17- const toggleOn = sidebar .classList .toggle (' ps' );
18- sidebar .classList .toggle (' ps-container' , toggleOn);
19- sidebar .classList .toggle (' ps--active-y' , toggleOn);
20- }
21- const railY = document .querySelector (' .ps__scrollbar-y-rail' )
22- if (railY) {
23- railY .removeAttribute (' style' )
24- }
15+ document .querySelector (' .sidebar-nav section' ).classList .toggle (' ps' )
2516 },
2617 brandMinimize () {
2718 document .body .classList .toggle (' brand-minimized' )
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export default {
7777 return {
7878 psSettings: {
7979 maxScrollbarLength: 200 ,
80- minScrollbarLength: 20 ,
80+ minScrollbarLength: 40 ,
8181 suppressScrollX: true ,
8282 wheelPropagation: false ,
8383 interceptRailY : styles => ({ ... styles, height: 0 })
@@ -94,7 +94,7 @@ export default {
9494
9595<style scoped lang="css">
9696 .scroll-area {
97- position : relative ;
97+ position : absolute ;
9898 height : 100% ;
9999 margin : auto ;
100100 }
You can’t perform that action at this time.
0 commit comments