refactor: adjust fullscreen handling and className logic in ProjectDialog component
This commit is contained in:
@@ -113,10 +113,10 @@ function ProjectDialog({
|
|||||||
<DialogContent
|
<DialogContent
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex max-h-[calc(100vh-2rem)] flex-col gap-0 overflow-hidden p-0",
|
"flex max-h-[calc(100vh-2rem)] flex-col gap-0 overflow-hidden p-0",
|
||||||
fullscreen
|
!fullscreen && dialogSizeClassName[size],
|
||||||
? "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],
|
|
||||||
contentClassName,
|
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}
|
showCloseButton={false}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user