Sidebar: Verzeichnisbaum mit Ordnern und Verbindungen (auf-/zuklappbar, Doppelklick verbindet, Drag & Drop in Ordner)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-25 15:44:36 +02:00
co-authored by Claude Opus 5.5
parent 4361d747f3
commit b81a7bd794
3 changed files with 108 additions and 2 deletions
+21
View File
@@ -112,6 +112,27 @@ svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width:
#body { flex: 1; display: flex; min-height: 0; position: relative; }
#sidebar { width: 212px; background: var(--chrome); padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--chrome-line); flex: none; }
#sidebar .spacer { flex: 1; }
#sidebar { min-height: 0; }
.nav-sep { border-top: 1px solid var(--chrome-line); margin: 8px 4px 6px; flex: none; }
.tree { flex: 1; min-height: 60px; overflow: auto; margin: 0 -4px; padding: 0 4px; user-select: none; }
.tree-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); padding: 4px 6px 6px; border-radius: 6px; }
.tree-head button { border: none; background: none; color: var(--faint); padding: 2px; border-radius: 4px; display: flex; }
.tree-head button:hover { color: var(--text); background: var(--hover); }
.tree-head button svg { width: 14px; height: 14px; }
.tree-row { display: flex; align-items: center; gap: 6px; height: 26px; padding-right: 6px; border-radius: 6px; color: var(--muted); cursor: pointer; white-space: nowrap; font-size: 12.5px; }
.tree-row:hover { background: var(--hover); color: var(--text); }
.tree-row.active { background: var(--nav-active); color: var(--text); }
.tree-row .chev { width: 14px; display: flex; justify-content: center; color: var(--faint); flex: none; }
.tree-row .chev svg { width: 12px; height: 12px; transition: transform .12s; }
.tree-row .chev.open svg { transform: rotate(90deg); }
.tree-row .ti { display: flex; flex: none; }
.tree-row .ti svg { width: 15px; height: 15px; }
.tree-row .tl { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.tree-row .tc { font-size: 10px; color: var(--faint); }
.tree-row.host .ti { width: 16px; height: 16px; border-radius: 4px; align-items: center; justify-content: center; color: white; }
.tree-row.host .ti svg { width: 11px; height: 11px; stroke-width: 2.2; }
.tree-row.drop, .tree-head.drop { outline: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tree-empty { color: var(--faint); font-size: 12px; padding: 4px 8px; }
.nav { display: flex; align-items: center; gap: 12px; border: none; background: none; padding: 9px 12px; border-radius: 8px; color: var(--muted); text-align: left; font-weight: 500; }
.nav:hover { background: var(--hover); color: var(--text); }
.nav.active { background: var(--nav-active); color: var(--text); }