Skip to content

Commit a3daf00

Browse files
committed
Fixed: Fix the issue of the close icon displaying rounded corners in Windows.
1 parent 1980f1b commit a3daf00

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

ui/components/Main/main.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ provide("providerClearSelection", providerClearSelection);
5252
}"
5353
:ui="{
5454
header: 'p-0 sm:p-0',
55-
body: 'p-2 pr-1 sm:p-4 px-4 h-[calc(100vh-58px)]'
55+
body: 'p-2 pr-1 sm:p-4 px-4 h-[calc(100vh-58px)]',
56+
root: 'rounded-none'
5657
}"
5758
@click="clearSelection"
5859
>

ui/layouts/default.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ const { initialTheme, listenOSThemeChange } = useThemeAdapter();
33
const { isWindows } = usePlatform();
44
55
const cardUi = computed(() => {
6-
const root = ["rounded-none", "overflow-visible"]
6+
const base = ["rounded-none", "overflow-visible"];
77
88
if (isWindows.value) {
9-
root.push("border-0", "ring-0", "shadow-none", "bg-transparent");
9+
base.push("border-0", "ring-0", "shadow-none", "bg-transparent");
1010
}
1111
1212
return {
1313
header: "p-0 sm:px-0",
1414
body: "p-0 sm:p-0",
1515
footer: "p-0 sm:p-0",
16-
root: root.join(" ")
16+
root: base.join(" ")
1717
};
1818
});
1919
@@ -24,8 +24,12 @@ onMounted(() => {
2424
</script>
2525

2626
<template>
27-
<UCard variant="outline" :ui="cardUi" style="background-color: transparent">
28-
<div class="flex gap-0 w-full h-screen">
27+
<UCard
28+
variant="outline"
29+
:ui="cardUi"
30+
style="background-color: transparent"
31+
>
32+
<div class="flex gap-0 w-full h-screen border-none">
2933
<SideBar />
3034

3135
<Main class="flex-1 min-w-0">

0 commit comments

Comments
 (0)