Skip to content

Commit d237808

Browse files
committed
perf: some build
1 parent c23d4b8 commit d237808

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

src-tauri/tauri.conf.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"transparent": true,
6161
"decorations": true,
6262
"titleBarStyle": "Overlay",
63+
"devtools": true,
6364
"trafficLightPosition": {
6465
"x": 10,
6566
"y": 18

ui/assets/css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
--ui-color-secondary-500: #141419;
1717
--ui-color-neutral-100: #d1d1d1;
1818
--el-font-family: var(--font-sans);
19-
--bg-hover-light: rgba(209, 209, 209, 0.6);
19+
--bg-hover-light: rgba(0, 0, 0, 0.1);
2020
--bg-hover-dark: rgba(0, 0, 0, 0.3);
2121
--bg-selected-light: rgba(209, 209, 209, 0.8);
2222
--bg-selected-dark: rgba(0, 0, 0, 0.5);

ui/components/SideBar/sideBar.vue

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ const { collapse, setCollapse } = useSettingManager();
1515
const isLoading = ref(false);
1616
const sidebarSearch = ref("");
1717
18-
// const isMacOS = false;
19-
2018
const 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

Comments
 (0)