File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,15 @@ function main() {
24
24
const container = getMenuContainer ( )
25
25
injectionMap . set ( nav , container )
26
26
27
- const chatList = nav . querySelector ( ':scope > div.overflow-y-auto, :scope > div.overflow-y-hidden ' )
27
+ const chatList = nav . querySelector ( ':scope > div.sticky.bottom-0 ' )
28
28
if ( chatList ) {
29
- chatList . after ( container )
29
+ chatList . prepend ( container )
30
30
}
31
31
else {
32
32
// fallback to the bottom of the nav
33
+ container . style . backgroundColor = '#171717'
34
+ container . style . position = 'sticky'
35
+ container . style . bottom = '72px'
33
36
nav . append ( container )
34
37
}
35
38
}
@@ -95,7 +98,7 @@ function main() {
95
98
function getMenuContainer ( ) {
96
99
const container = document . createElement ( 'div' )
97
100
// to overlap on the list section
98
- container . style . zIndex = '20 '
101
+ container . style . zIndex = '99 '
99
102
render ( < Menu container = { container } /> , container )
100
103
return container
101
104
}
You can’t perform that action at this time.
0 commit comments