Agent Zero AI framework
Add file browser drag and drop
Alessandro2925baca8a03
diff --git a/api/rename_work_dir_file.py b/api/rename_work_dir_file.pyindex 6c92b113c..bfcd957f1 100644--- a/api/rename_work_dir_file.py+++ b/api/rename_work_dir_file.py@@ -9,33 +9,58 @@ class RenameWorkDirFile(ApiHandler):async def process(self, input: Input, request: Request) -> Output:try:action = input.get("action", "rename")- new_name = (input.get("newName", "") or "").strip()- if not new_name:- return {"error": "New name is required"}-current_path = input.get("currentPath", "")- if action == "create-folder":- parent_path = input.get("parentPath", current_path)- if not parent_path:- return {"error": "Parent path is required"}- res = await runtime.call_development_function(- create_folder, parent_path, new_name+ if action == "move":+ file_paths = input.get("paths", [])+ destination_path = input.get("destinationPath", "")+ if not isinstance(file_paths, list) or not all(+ isinstance(path, str) and path for path in file_paths+ ):+ return {"error": "Paths are required"}+ if not isinstance(destination_path, str) or not destination_path:+ return {"error": "Destination path is required"}+ file_paths = [+ path if path.startswith("/") else f"/{path}"+ for path in file_paths+ ]+ if not destination_path.startswith("/"):+ destination_path = f"/{destination_path}"+ moved_paths = await runtime.call_development_function(+ move_items, file_paths, destination_path)- changed_paths = [posixpath.join(str(parent_path).rstrip("/"), new_name)]+ res = bool(moved_paths)+ changed_paths = [*file_paths, *moved_paths]+ elif action in {"rename", "create-folder"}:+ new_name = (input.get("newName", "") or "").strip()+ if not new_name:+ return {"error": "New name is required"}++ if action == "create-folder":+ parent_path = input.get("parentPath", current_path)+ if not parent_path:+ return {"error": "Parent path is required"}+ res = await runtime.call_development_function(+ create_folder, parent_path, new_name+ )+ changed_paths = [+ posixpath.join(str(parent_path).rstrip("/"), new_name)+ ]+ else:+ file_path = input.get("path", "")+ if not file_path:+ return {"error": "Path is required"}+ if not file_path.startswith("/"):+ file_path = f"/{file_path}"+ res = await runtime.call_development_function(+ rename_item, file_path, new_name+ )+ changed_paths = [+ file_path,+ posixpath.join(posixpath.dirname(file_path), new_name),+ ]else:- file_path = input.get("path", "")- if not file_path:- return {"error": "Path is required"}- if not file_path.startswith("/"):- file_path = f"/{file_path}"- res = await runtime.call_development_function(- rename_item, file_path, new_name- )- changed_paths = [- file_path,- posixpath.join(posixpath.dirname(file_path), new_name),- ]+ return {"error": "Unsupported file operation"}if res:await extension.call_extensions_async(@@ -53,7 +78,10 @@ class RenameWorkDirFile(ApiHandler):)return {"data": result}- error_msg = "Failed to create folder" if action == "create-folder" else "Rename failed"+ error_msg = {+ "create-folder": "Failed to create folder",+ "move": "Move failed",+ }.get(action, "Rename failed")return {"error": error_msg}except Exception as e:@@ -68,3 +96,8 @@ async def rename_item(file_path: str, new_name: str) -> bool:async def create_folder(parent_path: str, folder_name: str) -> bool:browser = FileBrowser()return browser.create_folder(parent_path, folder_name)+++async def move_items(file_paths: list[str], destination_path: str) -> list[str]:+ browser = FileBrowser()+ return browser.move_items(file_paths, destination_path)diff --git a/api/rename_work_dir_file.py.dox.md b/api/rename_work_dir_file.py.dox.mdindex 624bedc54..cfe2e9e3f 100644--- a/api/rename_work_dir_file.py.dox.md+++ b/api/rename_work_dir_file.py.dox.md@@ -16,6 +16,7 @@- Top-level functions:- `async rename_item(file_path: str, new_name: str) -> bool`- `async create_folder(parent_path: str, folder_name: str) -> bool`+- `async move_items(file_paths: list[str], destination_path: str) -> list[str]`## Runtime Contracts@@ -28,7 +29,8 @@## Key Concepts-- Important called helpers/classes observed in the source: `FileBrowser`, `browser.rename_item`, `browser.create_folder`, `strip`, `runtime.call_development_function`, `posixpath.join`, `file_path.startswith`, `extension.call_extensions_async`, `str.rstrip`, `posixpath.dirname`.+- Important called helpers/classes observed in the source: `FileBrowser`, `browser.rename_item`, `browser.create_folder`, `browser.move_items`, `strip`, `runtime.call_development_function`, `posixpath.join`, `file_path.startswith`, `extension.call_extensions_async`, `str.rstrip`, `posixpath.dirname`.+- The `move` action accepts `paths` plus `destinationPath`, emits the standard mutation hook, and returns the refreshed `currentPath` listing used by drag-and-drop clients.- Keep request/response, tool, or helper semantics documented here at the same time as source changes.## Work Guidance@@ -40,7 +42,7 @@## Verification- Run endpoint-specific or API/WebSocket tests for changed behavior; smoke-test browser callers when no focused test exists.-- No direct test reference was found by name search; choose the nearest behavioral test or perform a focused smoke check.+- Run `pytest tests/test_file_browser_navigation.py` and smoke-test folder and Up-button drops in the WebUI.## Child DOX Indexdiff --git a/helpers/file_browser.py b/helpers/file_browser.pyindex a4a7e936f..66ff92b44 100644--- a/helpers/file_browser.py+++ b/helpers/file_browser.py@@ -138,6 +138,62 @@ class FileBrowser:PrintStyle.error(f"Error renaming {file_path}: {e}")raise+ def move_items(self, file_paths: List[str], destination_path: str) -> List[str]:+ if not file_paths:+ raise ValueError("No items selected")++ base_dir = self.base_dir.resolve()+ destination = (self.base_dir / destination_path).resolve()+ if not destination.is_relative_to(base_dir):+ raise ValueError("Invalid destination path")+ if not destination.is_dir():+ raise NotADirectoryError("Destination folder not found")++ moves: List[Tuple[Path, Path]] = []+ targets: set[Path] = set()+ for file_path in dict.fromkeys(file_paths):+ requested = self.base_dir / file_path+ source = requested.parent.resolve() / requested.name+ if not source.is_relative_to(base_dir) or source == base_dir:+ raise ValueError("Invalid source path")+ if not source.exists() and not source.is_symlink():+ raise FileNotFoundError(f"Item not found: {source.name}")+ if source == destination:+ raise ValueError("A folder cannot be moved into itself")+ if (+ source.is_dir()+ and not source.is_symlink()+ and destination.is_relative_to(source)+ ):+ raise ValueError("A folder cannot be moved into itself")++ target = destination / source.name+ if target == source:+ raise ValueError(f"{source.name} is already in this folder")+ if target.exists() or target.is_symlink():+ raise FileExistsError(+ f'An item named "{source.name}" already exists'+ )+ if target in targets:+ raise FileExistsError(f'Multiple items are named "{source.name}"')+ targets.add(target)+ moves.append((source, target))++ moved: List[Tuple[Path, Path]] = []+ try:+ for source, target in moves:+ os.rename(source, target)+ moved.append((source, target))+ except Exception:+ for source, target in reversed(moved):+ try:+ os.rename(target, source)+ except Exception as rollback_error:+ PrintStyle.error(f"Error restoring {source}: {rollback_error}")+ raise++ return [str(target) for _, target in moved]+def create_folder(self, parent_path: str, folder_name: str) -> bool:try:if not folder_name or folder_name in {".", ".."}:diff --git a/helpers/file_browser.py.dox.md b/helpers/file_browser.py.dox.mdindex 3f8f2e43a..69a0e4c74 100644--- a/helpers/file_browser.py.dox.md+++ b/helpers/file_browser.py.dox.md@@ -16,6 +16,7 @@- `save_files(self, files: List, current_path: str=...) -> Tuple[List[str], List[str]]`- `delete_file(self, file_path: str) -> bool`- `rename_item(self, file_path: str, new_name: str) -> bool`+ - `move_items(self, file_paths: List[str], destination_path: str) -> List[str]`- `create_folder(self, parent_path: str, folder_name: str) -> bool`- `save_text_file(self, file_path: str, content: str) -> bool`- `get_files(self, current_path: str=...) -> Dict`@@ -31,6 +32,7 @@## Key Concepts- Important called helpers/classes observed in the source: `Path`, `files.get_abs_path`, `self._get_file_extension`, `file.seek`, `file.tell`, `resolve`, `os.makedirs`, `os.path.exists`, `full_path.with_name`, `new_path.exists`, `os.rename`, `target_dir.exists`, `filename.rsplit.lower`, `subprocess.run`, `result.stdout.strip.split`, `self._get_files_via_ls`, `files.exists`, `ValueError`, `str.startswith`, `file.write`.+- Multi-item moves validate every source and target before renaming, reject collisions and directory self-nesting, preserve symlink objects, and best-effort roll back earlier renames if a later rename fails.- Keep request/response, tool, or helper semantics documented here at the same time as source changes.## Work Guidance@@ -45,6 +47,7 @@- Related tests observed by source search:- `tests/test_download_toast_regressions.py`- `tests/test_office_document_store.py`+ - `tests/test_file_browser_navigation.py`## Child DOX Indexdiff --git a/tests/test_file_browser_navigation.py b/tests/test_file_browser_navigation.pyindex 7918990ab..21d2ef3c7 100644--- a/tests/test_file_browser_navigation.py+++ b/tests/test_file_browser_navigation.py@@ -1,6 +1,8 @@from pathlib import Pathimport sys+import pytest+PROJECT_ROOT = Path(__file__).resolve().parents[1]if str(PROJECT_ROOT) not in sys.path:@@ -219,3 +221,55 @@ def test_file_browser_reports_missing_directory(tmp_path: Path) -> None:assert result["entries"] == []assert result["current_path"] == str(missing_directory)assert result["error"] == "Directory not found"+++def test_file_browser_moves_selected_items_without_overwriting_or_self_nesting(tmp_path: Path) -> None:+ browser = FileBrowser()+ browser.base_dir = tmp_path+ source_file = tmp_path / "note.md"+ source_folder = tmp_path / "skills"+ destination = tmp_path / "archive"+ source_file.write_text("hello", encoding="utf-8")+ source_folder.mkdir()+ destination.mkdir()++ moved = browser.move_items(["note.md", "skills"], "archive")++ assert moved == [str(destination / "note.md"), str(destination / "skills")]+ assert (destination / "note.md").read_text(encoding="utf-8") == "hello"+ assert (destination / "skills").is_dir()++ collision = tmp_path / "collision.md"+ collision.write_text("source", encoding="utf-8")+ (destination / "collision.md").write_text("keep", encoding="utf-8")+ with pytest.raises(FileExistsError, match="already exists"):+ browser.move_items(["collision.md"], "archive")+ assert collision.read_text(encoding="utf-8") == "source"+ assert (destination / "collision.md").read_text(encoding="utf-8") == "keep"++ nested = destination / "skills" / "nested"+ nested.mkdir()+ with pytest.raises(ValueError, match="cannot be moved into itself"):+ browser.move_items(["archive/skills"], "archive/skills/nested")+++def test_file_browser_drag_and_drop_contract() -> None:+ html = read("webui", "components", "modals", "file-browser", "file-browser.html")+ store = read("webui", "components", "modals", "file-browser", "file-browser-store.js")+ attachments = read("webui", "components", "chat", "attachments", "attachmentsStore.js")+ api = read("api", "rename_work_dir_file.py")++ assert ':draggable="!$store.fileBrowser.isPickerMode() && !$store.fileBrowser.isBulkBusy"' in html+ assert "$store.fileBrowser.dropItems(file.path, file.name, $event)" in html+ assert "$store.fileBrowser.dropItems($store.fileBrowser.browser.parentPath, 'parent folder', $event)" in html+ start_drag = store[store.index(" startDrag("):store.index(" isDraggingPath(")]+ assert "this.clearSelection()" not in start_drag+ assert "file.selected = true" not in start_drag+ assert ": [file.path]" in start_drag+ assert "decorateEntries(data.data?.entries || [], selectedPaths)" in store+ assert "application/x-agent-zero-files" in store+ assert 'action: "move"' in store+ assert 'fetchApi("/rename_work_dir_file"' in store+ assert 'if action == "move":' in api+ assert 'isExternalFileDrag(event)' in attachments+ assert 'includes("Files")' in attachmentsdiff --git a/webui/components/chat/AGENTS.md b/webui/components/chat/AGENTS.mdindex f673ee3fc..9a13e39cf 100644--- a/webui/components/chat/AGENTS.md+++ b/webui/components/chat/AGENTS.md@@ -28,6 +28,7 @@- The top-section project selector, clock, and connection indicator must respect the instance-level mobile/desktop visibility preferences.- While the selected context is running, an empty composer makes the primary button stop the active run; typed text still adds to the queue, and Enter with an empty composer still sends queued messages.- Chat navigation controls must cross virtual message-window boundaries; top and bottom target the full cached history rather than only the mounted DOM slice.+- The page-wide attachment drop overlay must activate only for external file drags so internal WebUI drag interactions keep their own targets.## Work Guidancediff --git a/webui/components/chat/attachments/attachmentsStore.js b/webui/components/chat/attachments/attachmentsStore.jsindex 872fc853f..dd9f78f60 100644--- a/webui/components/chat/attachments/attachmentsStore.js+++ b/webui/components/chat/attachments/attachmentsStore.js@@ -66,6 +66,10 @@ const model = {this.dragDropOverlayVisible = false;},+ isExternalFileDrag(event) {+ return Array.from(event?.dataTransfer?.types || []).includes("Files");+ },+// Setup drag and drop event handlerssetupDragDropHandlers() {console.log("Setting up drag and drop handlers...");@@ -76,6 +80,7 @@ const model = {document.addEventListener(eventName,(e) => {+ if (!this.isExternalFileDrag(e)) return;e.preventDefault();e.stopPropagation();},@@ -87,6 +92,7 @@ const model = {document.addEventListener("dragenter",(e) => {+ if (!this.isExternalFileDrag(e)) return;console.log("Drag enter detected");dragCounter++;if (dragCounter === 1) {@@ -101,6 +107,7 @@ const model = {document.addEventListener("dragleave",(e) => {+ if (!this.isExternalFileDrag(e) && dragCounter === 0) return;dragCounter--;if (dragCounter === 0) {this.hideDragDropOverlay();@@ -113,6 +120,7 @@ const model = {document.addEventListener("drop",async (e) => {+ if (!this.isExternalFileDrag(e)) return;const dataTransfer = e.dataTransfer;console.log("Drop detected with files:", dataTransfer?.files?.length || 0);dragCounter = 0;diff --git a/webui/components/modals/file-browser/AGENTS.md b/webui/components/modals/file-browser/AGENTS.mdindex 225c1fc2c..aafb9b753 100644--- a/webui/components/modals/file-browser/AGENTS.md+++ b/webui/components/modals/file-browser/AGENTS.md@@ -25,6 +25,7 @@- Keep New file and New folder controls icon-only across canvas and modal modes while preserving accessible labels.- Keep narrow mobile controls compact: Up shares the path row, and New file/New folder share the search row.- Preserve surface actions that route supported files to Browser, Desktop, or Editor.+- Keep native drag moves available outside picker modes: dragging an unselected row moves only that row without changing selection, dragging a selected row moves the selection, folder rows accept drops, and Up moves items to the parent directory. Moves must reject overwrites and self-nesting.## Work Guidancediff --git a/webui/components/modals/file-browser/file-browser-store.js b/webui/components/modals/file-browser/file-browser-store.jsindex 5e46ef2a2..e18b9e7ea 100644--- a/webui/components/modals/file-browser/file-browser-store.js+++ b/webui/components/modals/file-browser/file-browser-store.js@@ -92,6 +92,8 @@ const model = {dropdownStyle: {},searchQuery: "",isBulkBusy: false,+ draggedPaths: [],+ dragOverPath: "",pickerMode: PICKER_MODE_NONE,pickerConfirmLabel: "",pickerFilename: "",@@ -210,6 +212,7 @@ const model = {this.openDropdownPath = null;this.searchQuery = "";this.isBulkBusy = false;+ this.clearDragState();this.pathInput = "";this.pathError = "";this.isPathSubmitting = false;@@ -260,6 +263,7 @@ const model = {this.history = [];this.searchQuery = "";this.isBulkBusy = false;+ this.clearDragState();this.pathError = "";this.isPathSubmitting = false;this.configurePicker(options);@@ -951,6 +955,90 @@ const model = {}},+ // --- Drag and drop ------------------------------------------------------+ startDrag(file = {}, event) {+ if (this.isPickerMode() || this.isBulkBusy || !file?.path || !event?.dataTransfer) {+ event?.preventDefault();+ return;+ }+ this.draggedPaths = file.selected+ ? this.selectedFiles.map((entry) => entry.path)+ : [file.path];+ event.dataTransfer.effectAllowed = "move";+ event.dataTransfer.setData("application/x-agent-zero-files", JSON.stringify(this.draggedPaths));+ event.dataTransfer.setData("text/plain", this.draggedPaths.join("\n"));+ this.closeDropdown();+ },++ isDraggingPath(path = "") {+ return this.draggedPaths.includes(path);+ },++ canDropAt(destinationPath = "") {+ const destination = this.normalizePath(destinationPath).replace(/\/+$/, "") || "/";+ return Boolean(this.draggedPaths.length && this.draggedPaths.every((path) => {+ const source = this.normalizePath(path).replace(/\/+$/, "") || "/";+ return destination !== source && !destination.startsWith(`${source}/`);+ }));+ },++ setDropTarget(destinationPath, event) {+ if (!this.canDropAt(destinationPath)) {+ if (event?.dataTransfer) event.dataTransfer.dropEffect = "none";+ return;+ }+ event.preventDefault();+ event.dataTransfer.dropEffect = "move";+ this.dragOverPath = destinationPath;+ },++ clearDropTarget(destinationPath, event) {+ if (event?.currentTarget?.contains(event.relatedTarget)) return;+ if (this.dragOverPath === destinationPath) this.dragOverPath = "";+ },++ clearDragState() {+ this.draggedPaths = [];+ this.dragOverPath = "";+ },++ async dropItems(destinationPath, destinationName, event) {+ if (!this.canDropAt(destinationPath)) return;+ event.preventDefault();+ const paths = [...this.draggedPaths];+ const selectedPaths = new Set(this.selectedFiles.map((file) => file.path));+ this.clearDragState();+ this.isBulkBusy = true;++ try {+ const resp = await fetchApi("/rename_work_dir_file", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ action: "move",+ paths,+ destinationPath,+ currentPath: this.browser.currentPath,+ }),+ });+ const data = await resp.json().catch(() => ({}));+ if (!resp.ok || data.error) throw new Error(data.error || "Move failed");++ this.browser.entries = this.decorateEntries(data.data?.entries || [], selectedPaths);+ this.browser.currentPath = data.data?.current_path || this.browser.currentPath;+ this.browser.parentPath = data.data?.parent_path || this.browser.parentPath;+ const count = paths.length;+ window.toastFrontendSuccess(+ `Moved ${count} ${count === 1 ? "item" : "items"} to ${destinationName}`,+ "Files Moved"+ );+ } catch (error) {+ window.toastFrontendError(error?.message || "Move failed", "Move Error");+ } finally {+ this.isBulkBusy = false;+ }+ },+// --- Rename / Create -----------------------------------------------------async openRenameModal(file, options = {}) {this.resetRenameState();diff --git a/webui/components/modals/file-browser/file-browser.html b/webui/components/modals/file-browser/file-browser.htmlindex f9fa46164..8e2aa1f4d 100644--- a/webui/components/modals/file-browser/file-browser.html+++ b/webui/components/modals/file-browser/file-browser.html@@ -41,6 +41,10 @@type="button"class="nav-button back-button"@click="$store.fileBrowser.navigateUp()"+ @dragover="$store.fileBrowser.setDropTarget($store.fileBrowser.browser.parentPath, $event)"+ @dragleave="$store.fileBrowser.clearDropTarget($store.fileBrowser.browser.parentPath, $event)"+ @drop="$store.fileBrowser.dropItems($store.fileBrowser.browser.parentPath, 'parent folder', $event)"+ :class="{ 'is-drop-target': $store.fileBrowser.dragOverPath === $store.fileBrowser.browser.parentPath }":disabled="!$store.fileBrowser.browser.parentPath || $store.fileBrowser.isLoading"aria-label="Navigate up"title="Navigate up"@@ -216,7 +220,21 @@<!-- File list entries --><template x-if="$store.fileBrowser.visibleEntries.length"><template x-for="file in $store.fileBrowser.visibleEntries" :key="file.path">- <div class="file-item" :data-is-dir="file.is_dir" :class="{ 'selected': file.selected }">+ <div+ class="file-item"+ :data-is-dir="file.is_dir"+ :draggable="!$store.fileBrowser.isPickerMode() && !$store.fileBrowser.isBulkBusy"+ :class="{+ 'selected': file.selected,+ 'is-dragging': $store.fileBrowser.isDraggingPath(file.path),+ 'is-drop-target': file.is_dir && $store.fileBrowser.dragOverPath === file.path+ }"+ @dragstart="$store.fileBrowser.startDrag(file, $event)"+ @dragend="$store.fileBrowser.clearDragState()"+ @dragover="file.is_dir && $store.fileBrowser.setDropTarget(file.path, $event)"+ @dragleave="file.is_dir && $store.fileBrowser.clearDropTarget(file.path, $event)"+ @drop="file.is_dir && $store.fileBrowser.dropItems(file.path, file.name, $event)"+ ><label class="file-select-cell" @click.stop><inputtype="checkbox"@@ -226,7 +244,7 @@/></label><div class="file-name" @click="$store.fileBrowser.handleFileNameClick(file)">- <img :src="'/public/' + (file.type === 'unknown' ? 'file' : ($store.fileBrowser.isArchive(file.name) ? 'archive' : file.type)) + '.svg'" class="file-icon" :alt="file.type" />+ <img :src="'/public/' + (file.type === 'unknown' ? 'file' : ($store.fileBrowser.isArchive(file.name) ? 'archive' : file.type)) + '.svg'" class="file-icon" :alt="file.type" draggable="false" /><span x-text="file.name"></span></div><div class="file-size" x-text="$store.fileBrowser.formatFileSize(file.size)"></div>@@ -597,7 +615,7 @@padding: 8px 0;font-size: 0.875rem;border-top: 1px solid var(--color-border);- transition: background-color 0.2s;+ transition: background-color 120ms cubic-bezier(0.2, 0, 0, 1), box-shadow 120ms cubic-bezier(0.2, 0, 0, 1), opacity 120ms ease, transform 120ms cubic-bezier(0.2, 0, 0, 1);white-space: nowrap;border-radius: 4px;overflow: visible; /* allow action dropdown menus to overflow the row */@@ -609,6 +627,19 @@.file-item.selected {background: color-mix(in srgb, var(--color-primary) 12%, transparent);}+ .file-item.is-dragging {+ opacity: 0.45;+ transform: scale(0.995);+ }+ .file-item.is-drop-target,+ .nav-button.is-drop-target {+ background: color-mix(in srgb, var(--color-primary) 18%, var(--color-input) 82%);+ box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-primary) 72%, transparent);+ }+ .file-item.is-drop-target .file-icon,+ .nav-button.is-drop-target .material-symbols-outlined {+ transform: scale(1.12);+ }.file-select-cell {display: flex;@@ -633,6 +664,7 @@margin: 0 1rem 0 0.7rem;vertical-align: middle;font-size: var(--font-size-sm);+ transition: transform 120ms cubic-bezier(0.2, 0, 0, 1);}.file-name {display: flex;@@ -848,6 +880,7 @@.nav-button .material-symbols-outlined {font-size: 1.05rem;line-height: 1;+ transition: transform 120ms cubic-bezier(0.2, 0, 0, 1);}.nav-button-label {font-size: 0.66rem;@@ -873,9 +906,18 @@.file-item[data-is-dir="true"] {cursor: pointer;}+ .file-item[draggable="true"] {+ cursor: grab;+ }+ .file-item[draggable="true"]:active {+ cursor: grabbing;+ }.file-item[data-is-dir="true"]:hover {background-color: var(--color-secondary);}+ .file-item[data-is-dir="true"].is-drop-target:hover {+ background: color-mix(in srgb, var(--color-primary) 18%, var(--color-input) 82%);+ }/* Upload Button Styles */.btn-upload {@@ -1100,6 +1142,13 @@flex: 1 1 auto;}}+ @media (prefers-reduced-motion: reduce) {+ .file-item,+ .file-icon,+ .nav-button .material-symbols-outlined {+ transition: none;+ }+ }</style></body></html>