diff --git a/frontend/src/components/shared/file-manager/file-manager-actions.tsx b/frontend/src/components/shared/file-manager/file-manager-actions.tsx index a2712fc0..04c1afba 100644 --- a/frontend/src/components/shared/file-manager/file-manager-actions.tsx +++ b/frontend/src/components/shared/file-manager/file-manager-actions.tsx @@ -1,4 +1,4 @@ -import { BookmarkPlus, ClipboardCopy, Copy, Download, FileSymlink, Trash2 } from 'lucide-react'; +import { ClipboardCopy, Copy, Download, FileSymlink, FolderOutput, Trash2 } from 'lucide-react'; import type { FileManagerAction, FileManagerBulkAction, FileNode } from './file-manager-types'; @@ -29,7 +29,7 @@ export const downloadAction = ( /** Built-in copy-path action. */ export const copyPathAction = (onCopyPath: (file: FileNode) => void): FileManagerAction => ({ appliesToDirs: true, - icon: Copy, + icon: ClipboardCopy, id: '__builtin_copy_path', label: 'Copy path', onSelect: onCopyPath, @@ -148,7 +148,7 @@ export const bulkPromoteAction = ( onPromote: (files: FileNode[]) => void, options: { label?: string; overflow?: boolean } = {}, ): FileManagerBulkAction => ({ - icon: BookmarkPlus, + icon: FolderOutput, id: '__builtin_bulk_promote', label: options.label ?? 'Save as resources', onSelect: onPromote, diff --git a/frontend/src/components/shared/file-manager/file-manager-bulk-actions-bar.tsx b/frontend/src/components/shared/file-manager/file-manager-bulk-actions-bar.tsx index 4041811c..8efac7a8 100644 --- a/frontend/src/components/shared/file-manager/file-manager-bulk-actions-bar.tsx +++ b/frontend/src/components/shared/file-manager/file-manager-bulk-actions-bar.tsx @@ -1,4 +1,4 @@ -import { MoreHorizontal } from 'lucide-react'; +import { MoreHorizontal, X } from 'lucide-react'; import { type ComponentType, useCallback, useMemo, useState } from 'react'; import ConfirmationDialog from '@/components/shared/confirmation-dialog'; @@ -136,15 +136,18 @@ export const FileManagerBulkActionsBar = ({ return ( <> -
+
{selectedText} -
+
{inlineActions.map(({ action, isDisabled }) => ( @@ -221,12 +224,13 @@ const BulkActionButton = ({ action, isDisabled, onClick }: BulkActionButtonProps const Icon = action.icon as ComponentType<{ className?: string }> | undefined; const button = ( ); diff --git a/frontend/src/components/shared/file-manager/file-manager-row.tsx b/frontend/src/components/shared/file-manager/file-manager-row.tsx index 6192e0f1..ffc7737d 100644 --- a/frontend/src/components/shared/file-manager/file-manager-row.tsx +++ b/frontend/src/components/shared/file-manager/file-manager-row.tsx @@ -153,9 +153,7 @@ const buildVisibleActions = ( actions: readonly FileManagerAction[], file: FileManagerInternalNode, ): FileManagerAction[] => - actions.filter((action) => - file.isDir ? action.appliesToDirs === true : action.appliesToFiles !== false, - ); + actions.filter((action) => (file.isDir ? action.appliesToDirs === true : action.appliesToFiles !== false)); const FileManagerRowImpl = ({ actions, @@ -425,7 +423,18 @@ const FileManagerRowImpl = ({