diff --git a/webui/html/index.html b/webui/html/index.html index ff8b87c..7dbadea 100644 --- a/webui/html/index.html +++ b/webui/html/index.html @@ -381,6 +381,24 @@ .sidebar .navLabel { display: none; } .sidebar .tab { justify-content: center; } } + .file-folder-row{ + display:flex; + align-items:center; + justify-content:space-between; + gap:10px; + cursor:pointer; + user-select:none; + } + + .file-folder-left{ + display:flex; + align-items:center; + gap:10px; + } + + .file-folder-files{ + margin-left: 18px; + } @@ -861,6 +879,15 @@ localStorage.setItem('pod_group_collapsed:' + pod, v ? '1' : '0'); } + function _isFolderCollapsed(folderKey) { + return localStorage.getItem('files_folder_collapsed:' + folderKey) !== '0'; + // default collapsed = true + } + + function _setFolderCollapsed(folderKey, v) { + localStorage.setItem('files_folder_collapsed:' + folderKey, v ? '1' : '0'); + } + function renderActionsDropdown(menuId, actionFn, targetEsc) { // actionFn is string: "containerAction" of "podAction" // targetEsc is al esc(...) dus veilig in onclick @@ -1382,15 +1409,20 @@ const apiFolderPath = (folder.path || '').replace(/^\/+/, ''); const uiFolderPath = filesToUiPath(apiFolderPath); // zonder systemd/ const folderLabel = uiFolderPath || 'root'; + const folderKey = apiFolderPath; // unieke key (met systemd/..) + const collapsed = _isFolderCollapsed(folderKey); parts.push(` -