File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ import { InboxNav } from './InboxNav';
8
8
import { InstallBtn } from './InstallBtn' ;
9
9
import { ReactQueryDevBtn } from './ReactQueryDevBtn' ;
10
10
import { pluginCustomPanel } from '@/plugin/common' ;
11
- import { Icon } from 'tailchat-design' ;
12
- import { NavbarNavItem } from './NavItem' ;
13
11
import { NavbarCustomNavItem } from './CustomNavItem' ;
14
12
15
13
/**
@@ -24,7 +22,7 @@ export const Navbar: React.FC = React.memo(() => {
24
22
< MobileMenuBtn />
25
23
26
24
{ /* Navbar */ }
27
- < div className = "flex-1 w-full" >
25
+ < div className = "flex-1 w-full overflow-hidden flex flex-col " >
28
26
< div className = "space-y-2" >
29
27
< PersonalNav />
30
28
@@ -41,7 +39,10 @@ export const Navbar: React.FC = React.memo(() => {
41
39
< Divider />
42
40
</ div >
43
41
44
- < GroupNav />
42
+ { /* 如果导航栏高度不够就缩减群组列表的高度 */ }
43
+ < div className = "overflow-y-hidden hover:overflow-y-auto overflow-x-hidden thin-scrollbar" >
44
+ < GroupNav />
45
+ </ div >
45
46
46
47
{ pluginCustomPanel
47
48
. filter ( ( p ) => p . position === 'navbar-group' )
Original file line number Diff line number Diff line change @@ -34,6 +34,20 @@ const tailchat = plugin(({ e, addUtilities }) => {
34
34
pointerEvents : 'none' ,
35
35
} ,
36
36
} ,
37
+ '.thin-scrollbar' : {
38
+ '&::-webkit-scrollbar' : {
39
+ width : '8px' ,
40
+ height : '8px' ,
41
+ } ,
42
+ '&::-webkit-scrollbar-thumb' : {
43
+ borderWidth : '2px' ,
44
+ borderRadius : '3px' ,
45
+ } ,
46
+ '&::-webkit-scrollbar-track' : {
47
+ borderWidth : '2px' ,
48
+ borderRadius : '4px' ,
49
+ } ,
50
+ } ,
37
51
} ;
38
52
39
53
addUtilities ( newUtilities ) ;
@@ -211,6 +225,7 @@ module.exports = {
211
225
borderRadius : [ 'hover' ] ,
212
226
borderWidth : [ 'last' ] ,
213
227
height : [ 'group-hover' ] ,
228
+ overflow : [ 'hover' ] ,
214
229
} ,
215
230
} ,
216
231
plugins : [ tailchat ] ,
You can’t perform that action at this time.
0 commit comments