Skip to content

Commit

Permalink
Merge pull request #62 from SergeWilfried/fix-drop-zone-ui
Browse files Browse the repository at this point in the history
fix: update upload-document.tsx
  • Loading branch information
SergeWilfried authored Jan 22, 2024
2 parents 0098ea0 + ac0c072 commit 7619fd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/app/(dashboard)/documents/upload-document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,12 @@ export const UploadDocument = ({ className }: UploadDocumentProps) => {
setIsLoading(false);
}
};
const isSmallVerticalScreen = useMemo(() => typeof window !== 'undefined' && window.innerHeight < 800, []);

return (
<div className={cn('relative', className)}>
<DocumentDropzone
className="min-h-[40vh]"
className={`${isSmallVerticalScreen ? 'min-h-[50vh]' : 'min-h-[40vh]'}`}
disabled={remaining.documents === 0 || !session?.user.emailVerified}
disabledMessage={disabledMessage}
onDrop={onFileDrop}
Expand Down

0 comments on commit 7619fd2

Please sign in to comment.