perf: add outer border to the application
fix: remove draggable feature on dialog component
This commit is contained in:
parent
dbdec4bfcf
commit
d3fb920b99
|
@ -83,6 +83,13 @@ const borderRadius = computed(() => {
|
||||||
}
|
}
|
||||||
return '10px'
|
return '10px'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const border = computed(() => {
|
||||||
|
if (isMacOS()) {
|
||||||
|
return undefined
|
||||||
|
}
|
||||||
|
return `1px solid ${themeVars.value.borderColor}`
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -90,7 +97,7 @@ const borderRadius = computed(() => {
|
||||||
<n-spin
|
<n-spin
|
||||||
:show="props.loading"
|
:show="props.loading"
|
||||||
:theme-overrides="{ opacitySpinning: 0 }"
|
:theme-overrides="{ opacitySpinning: 0 }"
|
||||||
:style="{ backgroundColor: themeVars.bodyColor, borderRadius }">
|
:style="{ backgroundColor: themeVars.bodyColor, borderRadius, border }">
|
||||||
<div
|
<div
|
||||||
id="app-content-wrapper"
|
id="app-content-wrapper"
|
||||||
class="flex-box-v"
|
class="flex-box-v"
|
||||||
|
@ -196,8 +203,8 @@ const borderRadius = computed(() => {
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
#app-content-wrapper {
|
#app-content-wrapper {
|
||||||
width: 100vw;
|
width: calc(100vw - 2px);
|
||||||
height: 100vh;
|
height: calc(100vh - 2px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
|
|
@ -22,7 +22,7 @@ body {
|
||||||
background-color: #0000;
|
background-color: #0000;
|
||||||
line-height: 1.5;
|
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";
|
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 {
|
#app {
|
||||||
|
@ -120,6 +120,6 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.n-dialog {
|
.n-modal-mask {
|
||||||
--wails-draggable: drag;
|
--wails-draggable: drag;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue