From 565f221a94df1ed686032dfdbe4bb154971bc91f Mon Sep 17 00:00:00 2001 From: xlx1212 Date: Wed, 5 Aug 2026 02:40:47 +0800 Subject: [PATCH] fix: make workspace icons consistent between active and inactive states (#1849) Active workspaces showed a DotMatrixArrowRightIcon (arrow) instead of the normal folder/letter icon, making active and inactive workspaces look like different entity types. Remove the isActive conditional from both the assistant workspace and normal workspace branches so all rows always use the same icon regardless of active state. Clean up now-dead SCSS rules for the removed active-icon classes. Add a layout test to prevent regression. --- .../sections/workspaces/WorkspaceItem.tsx | 21 ++++--------------- .../workspaces/WorkspaceListSection.scss | 21 +------------------ .../WorkspaceListSectionLayout.test.ts | 20 ++++++++++++++++++ 3 files changed, 25 insertions(+), 37 deletions(-) diff --git a/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceItem.tsx b/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceItem.tsx index 32aaf802cb..d851487bea 100644 --- a/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceItem.tsx +++ b/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceItem.tsx @@ -2,7 +2,6 @@ import React, { lazy, Suspense, useCallback, useContext, useEffect, useMemo, use import { createPortal } from 'react-dom'; import { Folder, FolderOpen, MoreHorizontal, FolderSearch, Plus, ChevronDown, Trash2, RotateCcw, Copy, FileText, GitBranch, Bot, Link2, ListChecks, Loader2, Clock3 } from 'lucide-react'; import { useTranslation } from 'react-i18next'; -import { DotMatrixArrowRightIcon } from './DotMatrixArrowRightIcon'; import { Button, ConfirmDialog, Modal, Tooltip } from '@/component-library'; import { useI18n } from '@/infrastructure/i18n'; import { aiExperienceConfigService } from '@/infrastructure/config/services/AIExperienceConfigService'; @@ -790,15 +789,9 @@ const WorkspaceItem: React.FC = ({ data-workspace-id={workspace.id} >