Fix: thumbnail image overflowing grid item bounds
All checks were successful
Automated Container Build / build-and-push (push) Successful in 39s

This commit is contained in:
Elijah 2026-05-25 15:59:53 -07:00
parent ba994c9535
commit 9feeef6329

View file

@ -14,11 +14,11 @@ export default function ThumbnailImage({ checksum, fallbackIcon, downloadToken,
const [showFallback, setShowFallback] = useState(false); const [showFallback, setShowFallback] = useState(false);
const docStyle = docType === 'docs' 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' : 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' : 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'; : 'w-full h-full';
const imgElement = ( const imgElement = (