From 30e9c0949a42d8ef67c5c75cfe6a0dcd2c6f718a Mon Sep 17 00:00:00 2001 From: Jaime Idolpx Date: Mon, 8 Jun 2026 01:07:25 -0400 Subject: [PATCH] feat(FileManager): improve entry action handling for files and folders --- src/app/components/FileManager.tsx | 59 +++++++++++++++++++----------- 1 file changed, 37 insertions(+), 22 deletions(-) diff --git a/src/app/components/FileManager.tsx b/src/app/components/FileManager.tsx index 295f92a..64df6c0 100644 --- a/src/app/components/FileManager.tsx +++ b/src/app/components/FileManager.tsx @@ -760,7 +760,11 @@ export default function FileManager({ initialPath = '/', config, setConfig, onBa className="w-4 h-4 flex-shrink-0" /> + )} + + {/* File: mount (primary default) */} + {actionEntry?.type === 'file' && ( + + )} + + {/* File: open/view */} + {actionEntry?.type === 'file' && ( + + + )} {/* Alternate viewers */} {actionEntry?.type === 'file' && availableViewers(actionEntry) @@ -875,15 +899,6 @@ export default function FileManager({ initialPath = '/', config, setConfig, onBa )} - {actionEntry?.type === 'file' && ( - - )} -