perf: cancel round corner of window when full screen
This commit is contained in:
parent
e1d2e6c618
commit
dbdec4bfcf
|
@ -74,6 +74,15 @@ watch(
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const borderRadius = computed(() => {
|
||||||
|
if (isMacOS()) {
|
||||||
|
return WindowIsFullscreen().then((full) => {
|
||||||
|
return full ? '0' : '10px'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return '10px'
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -81,7 +90,7 @@ watch(
|
||||||
<n-spin
|
<n-spin
|
||||||
:show="props.loading"
|
:show="props.loading"
|
||||||
:theme-overrides="{ opacitySpinning: 0 }"
|
:theme-overrides="{ opacitySpinning: 0 }"
|
||||||
:style="{ backgroundColor: themeVars.bodyColor, borderRadius: WindowIsFullscreen() ? '0' : '10px' }">
|
:style="{ backgroundColor: themeVars.bodyColor, borderRadius }">
|
||||||
<div
|
<div
|
||||||
id="app-content-wrapper"
|
id="app-content-wrapper"
|
||||||
class="flex-box-v"
|
class="flex-box-v"
|
||||||
|
|
Loading…
Reference in New Issue