feat(ui): browse and recover by folder

A Folders mode next to grid and list shows one level at a time: subfolders
first with their file count and size, then the files, under a clickable
breadcrumb. Folders and files are marked with tri-state boxes that persist
while navigating; the bar shows the exact total from the core, and the
selection is recovered relative to each marked folder. The sidebar folder
tree navigates in this mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-03 13:38:33 -03:00
1 parent ca677a8bc1
commit 00aceecf70
7 files changed
+317 -15

No files matched your search

+15
View File
@@ -422,6 +422,21 @@ dialog.lightbox[open] { display: grid; }
.xp-insp .viewer { max-height: 38vh; min-height: 150px; }
.xp-ititle { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; } .xp-ititle b { overflow-wrap: anywhere; font-size: 15px; }
.xp-meta h5 { margin: 6px 0 6px; font-size: 12px; color: var(--text-3); font-weight: 600; }
/* folder browsing */
.xp-path { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
.xp-cpart { border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14px; padding: 4px 6px; border-radius: 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.xp-cpart:hover { background: var(--surface-2); color: var(--text); }
.xp-cpart:last-child { color: var(--text); font-weight: 600; }
.xp-csep { color: var(--text-3); }
.xp-lth .xp-fico { color: var(--accent); background: var(--accent-soft); border-radius: 8px; }
.xp-dir .xp-lnm b { font-weight: 600; }
.xp-dir[data-state="mixed"] .xp-chk { opacity: 1; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.xp-lrow[data-cur="1"] { box-shadow: inset 0 0 0 2px var(--accent); }
.xp-folder-insp { display: grid; gap: 14px; padding: 20px 4px; }
.xp-folder-insp h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.xp-fbig { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; color: var(--accent); background: var(--accent-soft); }
.xp-fbig svg { width: 34px; height: 34px; }
.xp-folder-insp .row { display: flex; gap: 8px; flex-wrap: wrap; }
.xp-multi { display: grid; gap: 12px; padding: 20px 4px; text-align: center; } .xp-multi b { font-size: 18px; }
.xp-insp-x { display: none; align-self: flex-end; }
.xp-veil { display: none; }