Skip to content
Snippets Groups Projects
Unverified Commit b8b0c8fa authored by GyDi's avatar GyDi
Browse files

fix: adjust windows style

parent e585e87b
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
.the-content { .the-content {
position: absolute; position: absolute;
top: 30px; top: 0;
left: 0; left: 0;
right: 2px; right: 2px;
bottom: 10px; bottom: 10px;
...@@ -80,8 +80,8 @@ ...@@ -80,8 +80,8 @@
} }
} }
.macos.layout { .windows.layout {
.layout__right .the-content { .layout__right .the-content {
top: 0; top: 30px;
} }
} }
...@@ -19,7 +19,8 @@ import UpdateButton from "../components/layout/update-button"; ...@@ -19,7 +19,8 @@ import UpdateButton from "../components/layout/update-button";
import "dayjs/locale/zh-cn"; import "dayjs/locale/zh-cn";
dayjs.extend(relativeTime); dayjs.extend(relativeTime);
const isMacos = navigator.userAgent.includes("Mac OS X");
const isWinOs = /win64|win32/i.test(navigator.userAgent);
const Layout = () => { const Layout = () => {
const { t } = useTranslation(); const { t } = useTranslation();
...@@ -81,7 +82,7 @@ const Layout = () => { ...@@ -81,7 +82,7 @@ const Layout = () => {
<Paper <Paper
square square
elevation={0} elevation={0}
className={`${isMacos ? "macos " : ""}layout`} className={`${isWinOs ? "windows " : ""}layout`}
onPointerDown={onDragging} onPointerDown={onDragging}
sx={[ sx={[
(theme) => ({ (theme) => ({
...@@ -110,7 +111,7 @@ const Layout = () => { ...@@ -110,7 +111,7 @@ const Layout = () => {
</div> </div>
<div className="layout__right" data-windrag> <div className="layout__right" data-windrag>
{!isMacos && ( {isWinOs && (
<div className="the-bar"> <div className="the-bar">
<LayoutControl /> <LayoutControl />
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment