mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 23:16:17 -05:00
File Browser: add filter input and collapse-all button
Add a client-side filter above the File Browser table. Typing reduces the visible rows to files/directories whose name matches, plus their parent folders. A folder whose own name matches keeps its entire subtree, and opening a matching folder shows its contents unfiltered. * 'f' focuses the filter input, like the search inputs on other pages. * An attached X button clears the filter; disabled while empty. * A collapse-all (angle double up) button closes all open folders, clearing the ?folders= query param and deselecting hidden children. * The filter row is right-aligned and double-width on desktop, and fills a single row on mobile. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
2162396212
commit
8044fd1240
3 changed files with 396 additions and 3 deletions
|
|
@ -454,10 +454,33 @@ tr.drag-deselecting td {
|
|||
-ms-user-select: none;
|
||||
}
|
||||
|
||||
/* Filter input and collapse-all button: right-aligned on desktop, full width on mobile (below). */
|
||||
.file-browser-filter-container {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
/* Double the default input width on desktop. */
|
||||
.ui.input.file-browser-filter {
|
||||
width: 34em;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 700px) {
|
||||
.hide-on-mobile {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.file-browser-filter-container {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
/* Fill the row, but stay on one line with the collapse-all button. */
|
||||
.ui.input.file-browser-filter {
|
||||
flex: 1 1 auto;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* Ensure step icons are always visible, even when disabled */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue