Skip to content

Commit 7903a37

Browse files
committed
perf: change build for win
1 parent 7bfd541 commit 7903a37

5 files changed

Lines changed: 21 additions & 12 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ new-Client/dist
1717
ui/node_modules
1818
ui/dist/r
1919
node_modules
20+
.venv
2021
.DS_Store
2122
*.log*
2223
.data

src-tauri/icons/icon-appimage.png

-72.7 KB
Loading

src-tauri/icons/icon.ico

-55.2 KB
Binary file not shown.

ui/components/SideBar/sideBar.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const localePath = useLocalePath();
99
const { t } = useI18n();
1010
const { emit } = useEventBus();
1111
const { isMacOS } = usePlatform();
12+
// const isMacOS = false;
1213
const { collapse, setCollapse } = useSettingManager();
1314
1415
const isLoading = ref(false);
@@ -74,8 +75,8 @@ const debouncedSidebarSearch = useDebounceFn(emitSearch, 200);
7475
<div class="flex flex-col w-full">
7576
<!-- 折叠按钮 -->
7677
<div
77-
class="flex justify-center items-center px-3 h-10"
78-
:class="isMacOS ? (collapse ? 'mt-9' : 'justify-end') : collapse ? 'py-2' : 'py-2 mt-1 justify-between'"
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'"
7980
>
8081
<div class="flex items-center gap-2" v-if="!isMacOS && !collapse">
8182
<UAvatar size="sm" src="/logo.png" class="bg-transparent" :ui="{ root: 'bg-transparent' }" />

ui/layouts/default.vue

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
<script lang="ts" setup>
22
const { initialTheme, listenOSThemeChange } = useThemeAdapter();
3+
const { isWindows } = usePlatform();
4+
5+
const cardUi = computed(() => {
6+
const base = ["rounded-none", "overflow-visible"];
7+
8+
if (isWindows.value) {
9+
base.push("border-0", "ring-0", "shadow-none", "bg-transparent");
10+
}
11+
12+
return {
13+
header: "p-0 sm:px-0",
14+
body: "p-0 sm:p-0",
15+
footer: "p-0 sm:p-0",
16+
base: base.join(" ")
17+
};
18+
});
319
420
onMounted(() => {
521
initialTheme();
@@ -8,16 +24,7 @@ onMounted(() => {
824
</script>
925

1026
<template>
11-
<UCard
12-
variant="outline"
13-
class="rounded-none overflow-visible"
14-
:ui="{
15-
header: 'p-0 sm:px-0',
16-
body: 'p-0 sm:p-0',
17-
footer: 'p-0 sm:p-0'
18-
}"
19-
style="background-color: transparent"
20-
>
27+
<UCard variant="outline" :ui="cardUi" style="background-color: transparent">
2128
<div class="flex gap-0 w-full h-screen">
2229
<SideBar />
2330

0 commit comments

Comments
 (0)