fix: 修正Linux系统窗口下页面白边和顶部圆角白底 (#3778)

Co-authored-by: Tunglies <selenvow+github@gmail.com>
This commit is contained in:
时雨
2025-06-18 08:28:40 +08:00
committed by GitHub
parent c40c1960ed
commit f5315fd737

View File

@@ -500,6 +500,10 @@ const Layout = () => {
square square
elevation={0} elevation={0}
className={`${OS} layout`} className={`${OS} layout`}
style={{
borderTopLeftRadius: "0px",
borderTopRightRadius: "0px"
}}
onContextMenu={(e) => { onContextMenu={(e) => {
if ( if (
OS === "windows" && OS === "windows" &&
@@ -517,8 +521,8 @@ const Layout = () => {
? { ? {
borderRadius: "8px", borderRadius: "8px",
border: "1px solid var(--divider-color)", border: "1px solid var(--divider-color)",
width: "calc(100vw - 4px)", width: "100vw",
height: "calc(100vh - 4px)", height: "100vh",
} }
: {}, : {},
]} ]}