Fix PDF thumbnail generation missing in backend, fix old CSS class override in ThumbnailImage
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m11s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m11s
This commit is contained in:
parent
3c3bf4dd8b
commit
093a6ac4ef
3 changed files with 4 additions and 4 deletions
|
|
@ -1240,7 +1240,7 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
|
|||
})();
|
||||
|
||||
if (isMedia && file.checksum && viewMode === 'grid') {
|
||||
const docType = file.name.endsWith('.docx') ? 'docs' : file.name.endsWith('.pptx') ? 'slides' : (file.name.endsWith('.xlsx') || file.name.endsWith('.xls')) ? 'sheets' : file.name.endsWith('.pdf') ? 'pdf' : null;
|
||||
const docType = file.name.endsWith('.docx') ? 'docs' : file.name.endsWith('.pptx') ? 'slides' : (file.name.endsWith('.xlsx') || file.name.endsWith('.xls')) ? 'sheets' : ext === 'pdf' ? 'pdf' : null;
|
||||
// Use fallbackIcon for PDF too so it shows "PDF" text while loading
|
||||
const currentFallback = ext === 'pdf' ? (
|
||||
<div className={`${large ? 'w-20 h-20 rounded-2xl text-2xl' : 'w-5 h-5 rounded text-[6px] flex-shrink-0 aspect-square'} flex items-center justify-center font-black tracking-tighter shadow-sm text-white bg-[#ea4335]`}>
|
||||
|
|
|
|||
Reference in a new issue