perf: add outer border to the application

fix: remove draggable feature on dialog component
This commit is contained in:
tiny-craft 2023-09-25 17:30:01 +08:00
parent dbdec4bfcf
commit d3fb920b99
2 changed files with 12 additions and 5 deletions

View File

@ -83,6 +83,13 @@ const borderRadius = computed(() => {
}
return '10px'
})
const border = computed(() => {
if (isMacOS()) {
return undefined
}
return `1px solid ${themeVars.value.borderColor}`
})
</script>
<template>
@ -90,7 +97,7 @@ const borderRadius = computed(() => {
<n-spin
:show="props.loading"
:theme-overrides="{ opacitySpinning: 0 }"
:style="{ backgroundColor: themeVars.bodyColor, borderRadius }">
:style="{ backgroundColor: themeVars.bodyColor, borderRadius, border }">
<div
id="app-content-wrapper"
class="flex-box-v"
@ -196,8 +203,8 @@ const borderRadius = computed(() => {
<style lang="scss" scoped>
#app-content-wrapper {
width: 100vw;
height: 100vh;
width: calc(100vw - 2px);
height: calc(100vh - 2px);
overflow: hidden;
box-sizing: border-box;
border-radius: 10px;

View File

@ -22,7 +22,7 @@ body {
background-color: #0000;
line-height: 1.5;
font-family: v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--wails-draggable: drag;
//--wails-draggable: drag;
}
#app {
@ -120,6 +120,6 @@ body {
}
}
.n-dialog {
.n-modal-mask {
--wails-draggable: drag;
}