fix(mac): 修复隐藏标题栏拖拽;标题与内容左对齐;增加 banner 高度以避让交通灯

This commit is contained in:
Jason
2025-08-10 19:13:45 +08:00
parent 65a660fcdc
commit 5f0ef8a441
5 changed files with 39 additions and 5 deletions

View File

@@ -3,8 +3,19 @@ import ReactDOM from 'react-dom/client'
import App from './App'
import './index.css'
declare global {
interface Window {
platform?: { isMac?: boolean }
}
}
// 根据平台添加 body class便于平台特定样式
if (window.platform?.isMac) {
document.body.classList.add('is-mac')
}
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>
)
)