refactor: adjust fullscreen handling and className logic in ProjectDialog component
This commit is contained in:
@@ -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}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user