diff --git a/modules/vfs-toolkit/vfs-client/README.md b/modules/vfs-toolkit/vfs-client/README.md index 51552f0..d3478fb 100644 --- a/modules/vfs-toolkit/vfs-client/README.md +++ b/modules/vfs-toolkit/vfs-client/README.md @@ -28,6 +28,8 @@ Common features: - **Save as:** download a file to the local filesystem (right-click → "Save as…") - Provider dropdown in the location bar when multiple providers are available - File type filter dropdown and filename filter input in the toolbar +- Toolbar action buttons can be hidden without removing the filters +- Context menus can be hidden independently of keyboard shortcuts - Storage usage shown in the footer - Toolbar buttons and context menu items disabled automatically based on provider capabilities - Progress bar with file counter for batch operations; **✕ cancel button** to abort mid-operation @@ -160,6 +162,8 @@ The picker always supports multi-selecting files for management (copy, move, del | `startIn` | `string` | `null` | Absolute path to open in initially. Ignored when `id` has saved state. | | `multiple` | `boolean` | `false` | Allow confirming multiple files at once. | | `opfsStorageName` | `string` | - | Display name for the `OPFS` backend. | +| `showToolbarActions` | `boolean` | `true` | Show the built-in and custom toolbar action buttons. When `false`, the filters remain visible; context-menu actions and keyboard shortcuts remain available. | +| `showContextMenu` | `boolean` | `true` | Show the picker context menu for files, folders, and the list background. Keyboard shortcuts remain available when set to `false`. | | `width` | `number` | `800` | Popup width in pixels | | `height` | `number` | `600` | Popup height in pixels | @@ -198,6 +202,8 @@ Opens a save file picker popup. The user can navigate to a folder and type (or e | `startIn` | `string` | `null` | Absolute path to open in initially. Ignored when `id` has saved state. | | `suggestedName` | `string` | - | Pre-filled filename in the save input | | `opfsStorageName` | `string` | - | Display name for the `OPFS` backend. | +| `showToolbarActions` | `boolean` | `true` | Show the built-in and custom toolbar action buttons. When `false`, the filters remain visible; context-menu actions and keyboard shortcuts remain available. | +| `showContextMenu` | `boolean` | `true` | Show the picker context menu for files, folders, and the list background. Keyboard shortcuts remain available when set to `false`. | | `width` | `number` | `800` | Popup width in pixels | | `height` | `number` | `600` | Popup height in pixels | @@ -221,6 +227,8 @@ Opens a directory picker popup. The user can navigate to and select a folder. Re | `id` | `string` | `null` | Picker context ID (remembers last-used directory and connection) | | `startIn` | `string` | `null` | Absolute path to open in initially | | `opfsStorageName` | `string` | - | Display name for the `OPFS` backend. | +| `showToolbarActions` | `boolean` | `true` | Show the built-in and custom toolbar action buttons. When `false`, the filters remain visible; context-menu actions and keyboard shortcuts remain available. | +| `showContextMenu` | `boolean` | `true` | Show the picker context menu for files, folders, and the list background. Keyboard shortcuts remain available when set to `false`. | | `width` | `number` | `800` | Popup width in pixels | | `height` | `number` | `600` | Popup height in pixels | diff --git a/modules/vfs-toolkit/vfs-client/picker.css b/modules/vfs-toolkit/vfs-client/picker.css index e9eec66..85fd2f4 100644 --- a/modules/vfs-toolkit/vfs-client/picker.css +++ b/modules/vfs-toolkit/vfs-client/picker.css @@ -157,6 +157,10 @@ body { display: contents; } +html.toolbar-actions-hidden #vfs-toolbar .vfs-toolbar-action { + display: none; +} + /* Filter input */ #vfs-type-select { height: 26px; @@ -1070,4 +1074,4 @@ body { display: flex; flex-direction: column; overflow: hidden; -} \ No newline at end of file +} diff --git a/modules/vfs-toolkit/vfs-client/picker.html b/modules/vfs-toolkit/vfs-client/picker.html index 2749a18..d17259a 100644 --- a/modules/vfs-toolkit/vfs-client/picker.html +++ b/modules/vfs-toolkit/vfs-client/picker.html @@ -17,7 +17,7 @@