Fix: thumbnail image overflowing grid item bounds
All checks were successful
Automated Container Build / build-and-push (push) Successful in 39s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 39s
This commit is contained in:
parent
ba994c9535
commit
9feeef6329
1 changed files with 3 additions and 3 deletions
|
|
@ -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 = (
|
||||||
|
|
|
||||||
Reference in a new issue