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'
|
||||
})
|
||||
|
||||
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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue