From 38e8c6c2f4517b550273f8f09cb136107d2bebf2 Mon Sep 17 00:00:00 2001 From: Innei Date: Sat, 22 Feb 2025 15:35:26 +0800 Subject: [PATCH] fix(modal): adjust modal header drag and resize behavior - Moved drag and resize event handlers to Dialog.Title for better interaction - Removed unnecessary console.log statement - Simplified modal header interaction logic Signed-off-by: Innei --- .../src/components/ui/modal/stacked/modal.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/renderer/src/components/ui/modal/stacked/modal.tsx b/apps/renderer/src/components/ui/modal/stacked/modal.tsx index d0dd38987..574231961 100644 --- a/apps/renderer/src/components/ui/modal/stacked/modal.tsx +++ b/apps/renderer/src/components/ui/modal/stacked/modal.tsx @@ -361,12 +361,12 @@ export const ModalInternal = memo( defaultSize={resizeDefaultSize} className="flex grow flex-col" > -
- +
+ {!!icon && {icon}} {title}