refactor: unify document panel empty state rendering and view mode logic, adjust related styles

This commit is contained in:
2025-11-25 10:13:46 +01:00
parent ccc22beda2
commit fe80ccc046
4 changed files with 94 additions and 146 deletions
+1 -5
View File
@@ -1023,13 +1023,9 @@ function DesktopWorkspaceView({
}}
>
{!allSizesReady ? (
<div className="desk-empty">
<div className="empty-state">
<p>Loading previews</p>
</div>
) : items.length === 0 ? (
<div className="desk-empty">
<p>No documents to show here yet. Drop files to make this space come alive.</p>
</div>
) : (
items.map((doc, index) => {
const sizeInfo = ensureDocumentSize(doc);