diff --git a/client/src/components/button/IconButton.style.ts b/client/src/components/button/IconButton.style.ts
index 12d4a222..940070de 100644
--- a/client/src/components/button/IconButton.style.ts
+++ b/client/src/components/button/IconButton.style.ts
@@ -3,7 +3,7 @@ import { cva } from "@styled-system/css";
export const iconButtonContainer = cva({
base: {
display: "flex",
-
+ flexShrink: 1,
justifyContent: "center",
alignItems: "center",
borderRadius: "xs",
diff --git a/client/src/components/button/textButton.style.ts b/client/src/components/button/textButton.style.ts
index 3098d474..f31cd317 100644
--- a/client/src/components/button/textButton.style.ts
+++ b/client/src/components/button/textButton.style.ts
@@ -9,7 +9,7 @@ const textButton = cva({
base: {
borderRadius: "md",
width: "50%",
- height: "40px",
+ paddingY: "4px",
cursor: "pointer",
},
variants: {
diff --git a/client/src/components/sidebar/Sidebar.style.ts b/client/src/components/sidebar/Sidebar.style.ts
index 3dfbe9dc..c7f05736 100644
--- a/client/src/components/sidebar/Sidebar.style.ts
+++ b/client/src/components/sidebar/Sidebar.style.ts
@@ -25,6 +25,7 @@ export const plusIconBox = css({
position: "absolute",
bottom: "0px",
gap: "md",
+ flexShrink: 1,
justifyContent: "space-between",
alignItems: "center",
width: "100%",
diff --git a/client/src/features/auth/AuthButton.style.ts b/client/src/features/auth/AuthButton.style.ts
new file mode 100644
index 00000000..00e65f86
--- /dev/null
+++ b/client/src/features/auth/AuthButton.style.ts
@@ -0,0 +1,10 @@
+import { css } from "@styled-system/css";
+
+export const container = css({
+ display: "flex",
+ gap: "md",
+ flexGrow: 1,
+ justifyContent: "end",
+ alignItems: "center",
+ width: "auto",
+});
diff --git a/client/src/features/auth/AuthButton.tsx b/client/src/features/auth/AuthButton.tsx
index 7be702d5..8a3aadae 100644
--- a/client/src/features/auth/AuthButton.tsx
+++ b/client/src/features/auth/AuthButton.tsx
@@ -4,6 +4,7 @@ import { Modal } from "@components/modal/modal";
import { useModal } from "@components/modal/useModal";
import { useCheckLogin } from "@stores/useUserStore";
import { AuthModal } from "./AuthModal";
+import { container } from "./AuthButton.style";
export const AuthButton = () => {
const isLogin = useCheckLogin();
@@ -23,13 +24,13 @@ export const AuthButton = () => {
const { mutate: logout } = useLogoutMutation(closeLogoutModal);
return (
- <>
+
{isLogin ? (
-
+
로그아웃
) : (
-
+
로그인
)}
@@ -44,6 +45,6 @@ export const AuthButton = () => {
>
로그아웃 하시겠습니까?
- >
+
);
};
diff --git a/client/src/features/page/Page.tsx b/client/src/features/page/Page.tsx
index fdab49e4..474f67f7 100644
--- a/client/src/features/page/Page.tsx
+++ b/client/src/features/page/Page.tsx
@@ -32,7 +32,9 @@ export const Page = ({
handleTitleChange,
serializedEditorData,
}: PageProps) => {
- const { position, size, pageDrag, pageResize, pageMinimize, pageMaximize } = usePage({ x, y });
+ const { position, size, isMaximized, pageDrag, pageResize, pageMinimize, pageMaximize } = usePage(
+ { x, y },
+ );
const [serializedEditorDatas, setSerializedEditorDatas] =
useState(serializedEditorData);
@@ -74,6 +76,7 @@ export const Page = ({
handlePageClose(id)}
onPageMaximize={pageMaximize}
onPageMinimize={pageMinimize}
diff --git a/client/src/features/page/components/PageControlButton/PageControlButton.style.ts b/client/src/features/page/components/PageControlButton/PageControlButton.style.ts
index e064c6f8..42b79b3a 100644
--- a/client/src/features/page/components/PageControlButton/PageControlButton.style.ts
+++ b/client/src/features/page/components/PageControlButton/PageControlButton.style.ts
@@ -20,6 +20,11 @@ export const pageControlButton = cva({
width: "20px",
height: "20px",
cursor: "pointer",
+ "&:disabled": {
+ background: "gray.400",
+ opacity: 0.5,
+ cursor: "not-allowed",
+ },
},
variants: {
color: {
diff --git a/client/src/features/page/components/PageControlButton/PageControlButton.tsx b/client/src/features/page/components/PageControlButton/PageControlButton.tsx
index 1224e29b..50e14dd4 100644
--- a/client/src/features/page/components/PageControlButton/PageControlButton.tsx
+++ b/client/src/features/page/components/PageControlButton/PageControlButton.tsx
@@ -4,19 +4,25 @@ import MinusIcon from "@assets/icons/minus.svg?react";
import { pageControlContainer, pageControlButton, iconBox } from "./PageControlButton.style";
interface PageControlButtonProps {
+ isMaximized: boolean;
onPageMinimize?: () => void;
onPageMaximize?: () => void;
onPageClose?: () => void;
}
export const PageControlButton = ({
+ isMaximized,
onPageMinimize,
onPageMaximize,
onPageClose,
}: PageControlButtonProps) => {
return (
-