Add debug logging and allow responsive aspect ratio for thumbnails
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m9s

This commit is contained in:
Elijah Kuntz 2026-06-11 11:53:30 -07:00
parent 939af551dc
commit e7a649d0d4
3 changed files with 15 additions and 3 deletions

View file

@ -92,6 +92,8 @@ export default function OfficeHome({ type, onFileSelect, onCreateBlank, onPinCha
// Fetch ALL office files recursively
api.listOfficeFiles(fileTypeParam)
.then(data => {
console.log("ListOfficeFiles Debug DB:", data.debug_db);
console.log("ListOfficeFiles Debug Walk:", data.debug_walk);
const files = (data.files || []).map((f: any) => ({
...f,
is_dir: false,

View file

@ -20,7 +20,7 @@ export default function ThumbnailImage({ checksum, fallbackIcon, downloadToken,
}, [checksum]);
const docStyle = docType === 'docs'
? 'h-[85%] max-w-[85%] aspect-[1/1.4] bg-white border border-gray-300 dark:border-gray-600 shadow-md'
? `h-[85%] max-w-[85%] ${showFallback ? 'aspect-[1/1.4]' : 'aspect-auto'} bg-white border border-gray-300 dark:border-gray-600 shadow-md`
: docType === 'slides'
? 'w-[85%] max-h-[85%] aspect-[16/9] bg-white border border-gray-300 dark:border-gray-600 shadow-md'
: docType === 'sheets'