@@ -15,8 +15,6 @@ const { collapse, setCollapse } = useSettingManager();
1515const isLoading = ref (false );
1616const sidebarSearch = ref (" " );
1717
18- // const isMacOS = false;
19-
2018const sideBarItems = computed <NavigationMenuItem []>(() => {
2119 return [
2220 {
@@ -25,7 +23,7 @@ const sideBarItems = computed<NavigationMenuItem[]>(() => {
2523 },
2624 {
2725 label: t (" Menu.Linux" ),
28- icon: " si :terminal-alt-line " ,
26+ icon: " gravity-ui :terminal" ,
2927 to: localePath (" linux" ),
3028 disabled: isLoading .value
3129 },
@@ -37,7 +35,7 @@ const sideBarItems = computed<NavigationMenuItem[]>(() => {
3735 },
3836 {
3937 label: t (" Menu.Database" ),
40- icon: " i-lucide- database" ,
38+ icon: " gravity-ui: database" ,
4139 to: localePath (" database" ),
4240 disabled: isLoading .value
4341 },
@@ -49,7 +47,7 @@ const sideBarItems = computed<NavigationMenuItem[]>(() => {
4947 },
5048 {
5149 label: t (" Menu.Favorite" ),
52- icon: " i-lucide- star" ,
50+ icon: " gravity-ui: star" ,
5351 to: localePath (" favorite" ),
5452 disabled: isLoading .value
5553 }
@@ -75,8 +73,16 @@ const debouncedSidebarSearch = useDebounceFn(emitSearch, 200);
7573 <div class =" flex flex-col w-full" >
7674 <!-- 折叠按钮 -->
7775 <div
78- class =" flex items-center px-3 h-10"
79- :class =" isMacOS ? (collapse ? 'mt-9 justify-center' : 'justify-end') : collapse ? 'py-2 justify-center' : 'py-2 mt-1 justify-between'"
76+ class =" flex items-center px-3 h-10"
77+ :class ="
78+ isMacOS
79+ ? collapse
80+ ? 'mt-9 justify-center'
81+ : 'justify-end'
82+ : collapse
83+ ? 'py-2 justify-center mt-2'
84+ : 'py-2 mt-2 justify-between'
85+ "
8086 >
8187 <div class =" flex items-center gap-2" v-if =" !isMacOS && !collapse" >
8288 <UAvatar size =" sm" src =" /logo.png" class =" bg-transparent" :ui =" { root: 'bg-transparent' }" />
@@ -139,7 +145,7 @@ const debouncedSidebarSearch = useDebounceFn(emitSearch, 200);
139145 :collapsed =" collapse"
140146 color =" neutral"
141147 :ui =" {
142- link: 'px-2 my-1 rounded-sm menu-item light:text-gray-800 dark:text-gray-200',
148+ link: 'px-2 my-1 rounded-sm menu-item flex items-center light:text-gray-800 dark:text-gray-200',
143149 linkLeadingIcon: 'light:text-gray-800 dark:text-gray-200',
144150 label: 'light:text-gray-500 dark:text-gray-400 pb-0 text-xs font-light'
145151 }"
@@ -156,6 +162,7 @@ const debouncedSidebarSearch = useDebounceFn(emitSearch, 200);
156162.light .menu .menu-item {
157163 &[data-active ] {
158164 background-color : var (--bg-hover-light );
165+ opacity : 0.8 ;
159166 font-weight : 500 ;
160167 }
161168
0 commit comments