fix(mac): 修复隐藏标题栏拖拽;标题与内容左对齐;增加 banner 高度以避让交通灯
This commit is contained in:
@@ -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>
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user