From e66b530f24df359107d6e0c27d18d44ce78bfb5a Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Wed, 12 Nov 2025 12:02:21 +0100 Subject: [PATCH] fix --- frontend/src/documents/panel/DocumentsPanel.jsx | 9 +++++++-- frontend/src/styles/documents/listing.css | 6 ++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/frontend/src/documents/panel/DocumentsPanel.jsx b/frontend/src/documents/panel/DocumentsPanel.jsx index 496fc38..cff1161 100644 --- a/frontend/src/documents/panel/DocumentsPanel.jsx +++ b/frontend/src/documents/panel/DocumentsPanel.jsx @@ -252,8 +252,13 @@ const DocumentsPanel = ({ } } - if (!resolvedKey && navigableRows.length) { - resolvedKey = navigableRows[0].key; + if (!resolvedKey) { + if (!selectedEntries.length) { + return; + } + if (navigableRows.length) { + resolvedKey = navigableRows[0].key; + } } if (!resolvedKey) { diff --git a/frontend/src/styles/documents/listing.css b/frontend/src/styles/documents/listing.css index 42c3e1c..983f820 100644 --- a/frontend/src/styles/documents/listing.css +++ b/frontend/src/styles/documents/listing.css @@ -3,6 +3,7 @@ display: flex; flex-direction: column; min-height: 0; + --documents-list-row-height: calc(48px + 0.2rem); } .tags-panel, @@ -404,6 +405,11 @@ cursor: pointer; } +.documents-panel tbody tr.document > *, +.documents-panel tbody tr.folder > * { + height: var(--documents-list-row-height); +} + .documents-panel tbody tr.document.selected, .documents-panel tbody tr.folder.selected { background: var(--selection-soft);