From c7a30ea357f919a55b6366740fb28ffc3567640a Mon Sep 17 00:00:00 2001 From: young-do Date: Tue, 26 Nov 2024 00:23:24 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=9C=EA=B0=84=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?=EB=AA=A8=EB=8B=AC=20=EC=8A=A4=ED=83=80=EC=9D=BC=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../features/time/ui/chage-time-dialog.tsx | 34 +++++++++++++------ src/renderer/shared/ui/dialog.tsx | 3 ++ 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/src/renderer/features/time/ui/chage-time-dialog.tsx b/src/renderer/features/time/ui/chage-time-dialog.tsx index 7356955..2a59359 100644 --- a/src/renderer/features/time/ui/chage-time-dialog.tsx +++ b/src/renderer/features/time/ui/chage-time-dialog.tsx @@ -80,10 +80,17 @@ export const ChangeTimeDialog = ({ }, [open, categoryTimeMinutes, categoryTimeSeconds]); return ( - -
-
-
+ +
+
+
+
{category}
@@ -99,9 +106,9 @@ export const ChangeTimeDialog = ({ -
+
-
+
{padNumber(minutes)} {/* @note: 콜론 가운데 정렬이 되지 않아 이렇게 표시함 */} : @@ -125,12 +132,17 @@ export const ChangeTimeDialog = ({
-
-
- +
+ +
diff --git a/src/renderer/shared/ui/dialog.tsx b/src/renderer/shared/ui/dialog.tsx index dcd3a2e..9528fc2 100644 --- a/src/renderer/shared/ui/dialog.tsx +++ b/src/renderer/shared/ui/dialog.tsx @@ -11,6 +11,7 @@ export type DialogProps = { title?: string; hasCloseButton?: boolean; fullScreen?: boolean; + contentClassname?: string; animated?: boolean; children: React.ReactNode; onOpenChange?: (open: boolean) => void; @@ -22,6 +23,7 @@ export const Dialog = ({ hasCloseButton = true, fullScreen = false, animated = true, + contentClassname, children, onOpenChange, }: DialogProps) => { @@ -42,6 +44,7 @@ export const Dialog = ({ !fullScreen && 'fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] rounded-md p-[20px] shadow-lg', 'z-50 w-[95%] max-w-md bg-background-primary', + contentClassname, animated && 'duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]',