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 {
12
12
},
13
13
sidebarMinimize () {
14
14
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' )
25
16
},
26
17
brandMinimize () {
27
18
document .body .classList .toggle (' brand-minimized' )
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export default {
77
77
return {
78
78
psSettings: {
79
79
maxScrollbarLength: 200 ,
80
- minScrollbarLength: 20 ,
80
+ minScrollbarLength: 40 ,
81
81
suppressScrollX: true ,
82
82
wheelPropagation: false ,
83
83
interceptRailY : styles => ({ ... styles, height: 0 })
@@ -94,7 +94,7 @@ export default {
94
94
95
95
<style scoped lang="css">
96
96
.scroll-area {
97
- position : relative ;
97
+ position : absolute ;
98
98
height : 100% ;
99
99
margin : auto ;
100
100
}
You can’t perform that action at this time.
0 commit comments