🐛 Fix(custom): optimize minipage ui #374

ISSUES CLOSED: y
This commit is contained in:
Kuingsmile
2025-08-20 16:09:21 +08:00
parent 6b45632ede
commit c6537c13d9
2 changed files with 13 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ const getDefaultWindowSizes = (): { width: number; height: number } => {
} }
} }
function setMiniWindowShape(win: BrowserWindow) { export function setMiniWindowShape(win: BrowserWindow) {
const radius = 32 const radius = 32
const shape: Rectangle[] = [] const shape: Rectangle[] = []
@@ -226,7 +226,6 @@ windowList.set(IWindowList.MINI_WINDOW, {
hash: 'mini-page' hash: 'mini-page'
}) })
} }
setMiniWindowShape(window)
} }
}) })

View File

@@ -203,8 +203,12 @@ export default {
</script> </script>
<style lang="stylus"> <style lang="stylus">
html, body, #app
background: transparent
#mini-page #mini-page
background #409EFF background: #409EFF;
border-radius: 32px;
overflow: hidden;
color #FFF color #FFF
height 100vh height 100vh
width 100vw width 100vw
@@ -219,6 +223,7 @@ export default {
border 4px solid #fff border 4px solid #fff
box-sizing border-box box-sizing border-box
cursor pointer cursor pointer
&.linux &.linux
border-radius 0 border-radius 0
background-size 100vh 100vw background-size 100vh 100vw
@@ -238,4 +243,10 @@ export default {
background rgba(0,0,0,0.3) background rgba(0,0,0,0.3)
#file-uploader #file-uploader
display none display none
#mini-page img
width 100%
height 100%
border-radius 50%
display block
image-rendering: -webkit-optimize-contrast
</style> </style>