diff --git a/packages/ui/src/components/session/DirectoryExplorerDialog.tsx b/packages/ui/src/components/session/DirectoryExplorerDialog.tsx index 1700286e..54264235 100644 --- a/packages/ui/src/components/session/DirectoryExplorerDialog.tsx +++ b/packages/ui/src/components/session/DirectoryExplorerDialog.tsx @@ -359,7 +359,7 @@ export const DirectoryExplorerDialog: React.FC = ( const canSubmitClone = canAddProject && cloneRemoteUrl.trim().length > 0; const highlightedRow = rows[highlightedIndex] ?? null; const hasHighlightedBrowseItem = Boolean( - highlightedRow && (highlightedRow.type === 'up' || (highlightedRow.type === 'directory' && !highlightedRow.disabled)) + highlightedRow && (highlightedRow.type === 'up' || highlightedRow.type === 'directory') ); const submitModifierLabel = formatShortcutForDisplay('mod'); const submitActionLabel = isAlreadyAdded @@ -483,7 +483,6 @@ export const DirectoryExplorerDialog: React.FC = ( if (row.path) browseToDisplayPath(row.path); return; } - if (row.disabled) return; browseToEntry(row); }, [browseToDisplayPath, browseToEntry]); @@ -662,7 +661,6 @@ export const DirectoryExplorerDialog: React.FC = ( } }} type="button" - disabled={row.type === 'directory' && row.disabled} onMouseEnter={() => setHighlightedIndex(index)} onMouseDown={(event) => event.preventDefault()} onClick={() => executeRow(row)} @@ -670,7 +668,7 @@ export const DirectoryExplorerDialog: React.FC = ( 'flex w-full cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50', isActive && 'bg-interactive-selection text-interactive-selection-foreground', !isActive && 'hover:bg-interactive-hover/50', - row.type === 'directory' && row.disabled && 'cursor-not-allowed opacity-45 hover:bg-transparent' + row.type === 'directory' && row.disabled && 'opacity-45' )} > {row.type === 'up' ? (