From e28452cc7b9be474a3f1833c3b9b9f4cb90a56c0 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Tue, 9 Jan 2024 16:04:56 +0800 Subject: [PATCH] feat: Optimize control button style --- src/assets/styles/layout.scss | 4 ++-- src/components/layout/layout-control.tsx | 21 +++++++++++++++++---- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/assets/styles/layout.scss b/src/assets/styles/layout.scss index 1fce0f2a..897b88cb 100644 --- a/src/assets/styles/layout.scss +++ b/src/assets/styles/layout.scss @@ -77,8 +77,8 @@ .the-bar { position: absolute; - top: 2px; - right: 8px; + top: 0px; + right: 0px; height: 36px; display: flex; align-items: center; diff --git a/src/components/layout/layout-control.tsx b/src/components/layout/layout-control.tsx index 4cac8005..b622e643 100644 --- a/src/components/layout/layout-control.tsx +++ b/src/components/layout/layout-control.tsx @@ -1,4 +1,4 @@ -import { Button } from "@mui/material"; +import { Button, ButtonGroup } from "@mui/material"; import { appWindow } from "@tauri-apps/api/window"; import { CloseRounded, @@ -20,7 +20,16 @@ export const LayoutControl = () => { }); return ( - <> + - + ); };