From 9feeef63294e1e8a8a32b252b50c130d946610e8 Mon Sep 17 00:00:00 2001 From: Elijah Date: Mon, 25 May 2026 15:59:53 -0700 Subject: [PATCH] Fix: thumbnail image overflowing grid item bounds --- frontend/src/components/ThumbnailImage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/ThumbnailImage.tsx b/frontend/src/components/ThumbnailImage.tsx index 0b1007a..c1f062c 100644 --- a/frontend/src/components/ThumbnailImage.tsx +++ b/frontend/src/components/ThumbnailImage.tsx @@ -14,11 +14,11 @@ export default function ThumbnailImage({ checksum, fallbackIcon, downloadToken, const [showFallback, setShowFallback] = useState(false); const docStyle = docType === 'docs' - ? 'w-[85%] aspect-[1/1.4] bg-white border border-gray-300 dark:border-gray-600 shadow-md' + ? 'h-[85%] max-w-[85%] aspect-[1/1.4] bg-white border border-gray-300 dark:border-gray-600 shadow-md' : docType === 'slides' - ? 'w-[85%] aspect-[16/9] bg-white border border-gray-300 dark:border-gray-600 shadow-md' + ? 'w-[85%] max-h-[85%] aspect-[16/9] bg-white border border-gray-300 dark:border-gray-600 shadow-md' : docType === 'sheets' - ? 'w-[85%] aspect-[1.4/1] bg-white border border-gray-300 dark:border-gray-600 shadow-md' + ? 'w-[85%] max-h-[85%] aspect-[1.4/1] bg-white border border-gray-300 dark:border-gray-600 shadow-md' : 'w-full h-full'; const imgElement = (