refactor(ui): use tanstack virtual+table for book browser table view (#1047)
This commit is contained in:
+21
-69
@@ -1,82 +1,18 @@
|
||||
.skeleton-grid {
|
||||
display: grid;
|
||||
gap: 21px;
|
||||
place-items: start center;
|
||||
width: 100%;
|
||||
|
||||
@media (width <= 767px) {
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.skeleton-card {
|
||||
background: var(--p-content-border-color);
|
||||
border-radius: 8px;
|
||||
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
||||
will-change: opacity;
|
||||
}
|
||||
|
||||
.table-skeleton {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.table-skeleton-header,
|
||||
.table-skeleton-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.table-skeleton-row {
|
||||
min-height: 2.75rem;
|
||||
padding-bottom: 0.75rem;
|
||||
border-bottom: 1px solid var(--p-content-border-color);
|
||||
}
|
||||
|
||||
.table-skeleton-cell {
|
||||
height: 0.875rem;
|
||||
border-radius: 999px;
|
||||
background: var(--p-content-border-color);
|
||||
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
||||
|
||||
&.table-skeleton-cell-header {
|
||||
height: 0.75rem;
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
&.table-skeleton-cell-short {
|
||||
width: 70%;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes skeleton-pulse {
|
||||
0%, 100% { opacity: 0.3; }
|
||||
50% { opacity: 0.6; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.skeleton-card,
|
||||
.table-skeleton-cell {
|
||||
animation: none;
|
||||
will-change: auto;
|
||||
}
|
||||
}
|
||||
|
||||
// Layout containers
|
||||
.book-browser-container {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.book-browser-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
flex: 1 1 0;
|
||||
min-width: 0;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
// Header bar
|
||||
@@ -413,7 +349,23 @@
|
||||
}
|
||||
|
||||
.virtual-loader-cell {
|
||||
border-radius: 8px;
|
||||
background: var(--p-content-border-color);
|
||||
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
||||
pointer-events: none;
|
||||
will-change: opacity;
|
||||
}
|
||||
|
||||
@keyframes skeleton-pulse {
|
||||
0%, 100% { opacity: 0.3; }
|
||||
50% { opacity: 0.6; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.virtual-loader-cell {
|
||||
animation: none;
|
||||
will-change: auto;
|
||||
}
|
||||
}
|
||||
|
||||
// No books state
|
||||
|
||||
Reference in New Issue
Block a user