mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-08 17:51:20 +02:00
clean up
This commit is contained in:
parent
c100c9f10d
commit
6ffff975f3
@ -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,
|
||||||
|
30
frontend/src/styles/skeleton.css
vendored
30
frontend/src/styles/skeleton.css
vendored
@ -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;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user