Folder Sidebar

This commit is contained in:
2026-06-16 15:03:18 +02:00
parent 7fe0013a5c
commit 9ed6475775
6 changed files with 330 additions and 16 deletions
+3 -1
View File
@@ -118,7 +118,9 @@
if (!e.target.closest) return;
// Match both listing styles: table rows expose the file link inside
// a .list-item row; thumbnail tiles are bare a.thumb-tile anchors.
var anchor = e.target.closest('.list-item a, a.thumb-tile');
// The left tree rail's file anchors (a.tree-file) join in too;
// folder anchors there end in "/" and fall through to navigation.
var anchor = e.target.closest('.list-item a, a.thumb-tile, aside.tree-sidebar a.tree-file');
if (!anchor) return;
var item = anchor.closest('.list-item');
// Only intercept the primary file link, and only for files (not folders).