refactor: adjust fullscreen handling and className logic in ProjectDialog component

This commit is contained in:
mlogclub
2026-06-22 22:40:05 +08:00
parent 3e68fc3344
commit 5c59f0ad8a
+3 -3
View File
@@ -113,10 +113,10 @@ function ProjectDialog({
<DialogContent
className={cn(
"flex max-h-[calc(100vh-2rem)] flex-col gap-0 overflow-hidden p-0",
fullscreen
? "top-2 left-2 h-[calc(100vh-16px)] max-h-[calc(100vh-16px)] w-[calc(100vw-16px)] max-w-[calc(100vw-16px)] translate-x-0 translate-y-0 rounded-xl sm:max-w-[calc(100vw-16px)]"
: dialogSizeClassName[size],
!fullscreen && dialogSizeClassName[size],
contentClassName,
fullscreen &&
"top-2 left-2 h-[calc(100vh-16px)] max-h-[calc(100vh-16px)] w-[calc(100vw-16px)] max-w-[calc(100vw-16px)] translate-x-0 translate-y-0 rounded-xl sm:max-w-[calc(100vw-16px)]",
)}
showCloseButton={false}
>