mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 20:29:03 +08:00
修复 macOS 窗口圆角显示异常
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user