修复 macOS 窗口圆角显示异常

This commit is contained in:
JSR
2026-03-19 18:06:42 +08:00
parent e4a0eb1ad8
commit 6675b6d978
5 changed files with 23 additions and 2 deletions
+10
View File
@@ -102,3 +102,13 @@ select {
.ss-operation-drawer .ant-drawer-header button {
-webkit-app-region: no-drag;
}
html.platform-macos,
html.platform-macos body {
background: transparent;
}
html.platform-macos #root {
border-radius: 12px;
overflow: hidden;
}
+5
View File
@@ -126,6 +126,11 @@ const disableTouchZoom = () => {
}
disableTouchZoom()
const platform = navigator.userAgent.toLowerCase()
if (platform.includes("mac")) {
document.documentElement.classList.add("platform-macos")
}
window.addEventListener("error", (e: any) => {
const error = e?.error
safeWriteLog({