Skip to content

Commit dbdec4b

Browse files
committed
perf: cancel round corner of window when full screen
1 parent e1d2e6c commit dbdec4b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

frontend/src/AppContent.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,23 @@ watch(
7474
}
7575
},
7676
)
77+
78+
const borderRadius = computed(() => {
79+
if (isMacOS()) {
80+
return WindowIsFullscreen().then((full) => {
81+
return full ? '0' : '10px'
82+
})
83+
}
84+
return '10px'
85+
})
7786
</script>
7887
7988
<template>
8089
<!-- app content-->
8190
<n-spin
8291
:show="props.loading"
8392
:theme-overrides="{ opacitySpinning: 0 }"
84-
:style="{ backgroundColor: themeVars.bodyColor, borderRadius: WindowIsFullscreen() ? '0' : '10px' }">
93+
:style="{ backgroundColor: themeVars.bodyColor, borderRadius }">
8594
<div
8695
id="app-content-wrapper"
8796
class="flex-box-v"

0 commit comments

Comments
 (0)