Fix: thumbnail rendering aspect ratios and spreadsheet layouts
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m20s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m20s
This commit is contained in:
parent
8995b48eb5
commit
a87bb351d0
2 changed files with 13 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ export default function ThumbnailImage({ checksum, fallbackIcon, downloadToken }
|
|||
key={key}
|
||||
src={downloadToken ? `${api.getThumbnailUrl(checksum, downloadToken)}${errorCount > 0 ? `&t=${key}` : ''}` : ''}
|
||||
alt=""
|
||||
className="w-full h-full object-cover"
|
||||
className="w-full h-full object-contain"
|
||||
style={{ display: showFallback ? 'none' : 'block' }}
|
||||
onError={(e) => {
|
||||
if (errorCount < 5) {
|
||||
|
|
|
|||
Reference in a new issue