This commit is contained in:
Reece 2025-07-16 00:41:44 +01:00
parent c100c9f10d
commit 6ffff975f3
2 changed files with 2 additions and 32 deletions

View File

@ -114,7 +114,7 @@ const FileEditor = ({
return { return {
id: sharedFile.id || `file-${Date.now()}-${Math.random()}`, id: sharedFile.id || `file-${Date.now()}-${Math.random()}`,
name: (sharedFile.file?.name || sharedFile.name || 'unknown').replace(/\.pdf$/i, ''), name: (sharedFile.file?.name || sharedFile.name || 'unknown'),
pageCount: sharedFile.pageCount || Math.floor(Math.random() * 20) + 1, // Mock for now pageCount: sharedFile.pageCount || Math.floor(Math.random() * 20) + 1, // Mock for now
thumbnail, thumbnail,
size: sharedFile.file?.size || sharedFile.size || 0, size: sharedFile.file?.size || sharedFile.size || 0,
@ -166,7 +166,7 @@ const FileEditor = ({
const convertedFile = { const convertedFile = {
id: `file-${Date.now()}-${Math.random()}`, id: `file-${Date.now()}-${Math.random()}`,
name: file.name.replace(/\.pdf$/i, ''), name: file.name,
pageCount: processedFile?.totalPages || Math.floor(Math.random() * 20) + 1, pageCount: processedFile?.totalPages || Math.floor(Math.random() * 20) + 1,
thumbnail, thumbnail,
size: file.size, size: file.size,

View File

@ -1,30 +0,0 @@
/* Pulse animation for skeleton loaders */
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.4;
}
}
/* Shimmer animation for premium feel */
@keyframes shimmer {
0% {
background-position: -200px 0;
}
100% {
background-position: calc(200px + 100%) 0;
}
}
.skeleton-shimmer {
background: linear-gradient(
90deg,
var(--mantine-color-gray-1) 25%,
var(--mantine-color-gray-0) 50%,
var(--mantine-color-gray-1) 75%
);
background-size: 200px 100%;
animation: shimmer 2s infinite linear;
}