From 8554fbd6e5104a746eb43d672f451c912fc7b0a3 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 28 Oct 2025 23:32:46 +0100 Subject: [PATCH] frontend --- frontend/src/sidebar/Sidebar.jsx | 20 +++++++++----------- frontend/src/styles.css | 4 +--- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/frontend/src/sidebar/Sidebar.jsx b/frontend/src/sidebar/Sidebar.jsx index 8da1924..2f6419b 100644 --- a/frontend/src/sidebar/Sidebar.jsx +++ b/frontend/src/sidebar/Sidebar.jsx @@ -29,12 +29,12 @@ const FolderNode = ({ }) => { const isRoot = node.id === 'root'; const hasChildren = Boolean(node.hasChildren); - const canToggle = !isRoot && (hasChildren || !node.loaded); - const showChevron = !isRoot && (hasChildren || !node.loaded); + const canToggle = hasChildren || !node.loaded; + const showChevron = canToggle; const icon = showChevron ? : null; const canDrag = !isRoot; const isDragging = draggingFolderId === node.id; - const isExpanded = isRoot ? true : Boolean(node.expanded); + const isExpanded = Boolean(node.expanded); const rowClasses = ['folder-row']; if (isSelected) { rowClasses.push('active'); @@ -66,14 +66,12 @@ const FolderNode = ({ } }} > - {!isRoot && ( - - {icon} - - )} + + {icon} + {node.name} diff --git a/frontend/src/styles.css b/frontend/src/styles.css index 0673c7c..2fc3828 100644 --- a/frontend/src/styles.css +++ b/frontend/src/styles.css @@ -1095,9 +1095,7 @@ button.danger:hover:not([disabled]) { padding: 0; } -.folder-children.folder-children--level1 { - margin-left: 0; -} + .sidebar-section { margin-top: 1rem;