diff --git a/src/assets/styles/layout.scss b/src/assets/styles/layout.scss
index 1b89702c..59426ee3 100644
--- a/src/assets/styles/layout.scss
+++ b/src/assets/styles/layout.scss
@@ -129,14 +129,14 @@
flex: 1 0 58px;
margin-top: 10px;
margin-left: 10px;
- padding-top: 30px;
+ padding-top: 5px;
padding-left: 10px;
padding-right: 20px;
padding-bottom: 16px;
}
.layout__right .the-content {
- top: 24px;
+ top: 5px;
}
}
}
@@ -144,11 +144,11 @@
.macos {
&.layout {
.layout__left {
- padding-top: 24px;
+ padding-top: 5px;
}
.layout__right .the-content {
- top: 24px;
+ top: 5px;
}
.layout__left .the-newbtn {
diff --git a/src/components/layout/layout-control.tsx b/src/components/layout/layout-control.tsx
deleted file mode 100644
index eda6a8c3..00000000
--- a/src/components/layout/layout-control.tsx
+++ /dev/null
@@ -1,104 +0,0 @@
-import { Button, ButtonGroup } from "@mui/material";
-import { getCurrentWebviewWindow } from "@tauri-apps/api/webviewWindow";
-import {
- CloseRounded,
- CropSquareRounded,
- FilterNoneRounded,
- HorizontalRuleRounded,
- PushPinOutlined,
- PushPinRounded,
-} from "@mui/icons-material";
-import { useEffect, useState } from "react";
-const appWindow = getCurrentWebviewWindow();
-
-export const LayoutControl = () => {
- const minWidth = 40;
-
- const [isMaximized, setIsMaximized] = useState(false);
- const [isPined, setIsPined] = useState(false);
-
- useEffect(() => {
- const unlistenResized = appWindow.onResized(() => {
- appWindow.isMaximized().then((maximized) => {
- setIsMaximized(() => maximized);
- });
- });
-
- appWindow.isMaximized().then((maximized) => {
- setIsMaximized(() => maximized);
- });
-
- return () => {
- unlistenResized.then((fn) => fn());
- };
- }, []);
-
- return (
-