diff --git a/web/app/components/workflow/skill/editor-tab-item.tsx b/web/app/components/workflow/skill/editor-tab-item.tsx index d39b621cf6..b346ec2685 100644 --- a/web/app/components/workflow/skill/editor-tab-item.tsx +++ b/web/app/components/workflow/skill/editor-tab-item.tsx @@ -8,22 +8,7 @@ import { useCallback } from 'react' import { useTranslation } from 'react-i18next' import FileTypeIcon from '@/app/components/base/file-uploader/file-type-icon' import { cn } from '@/utils/classnames' -import { getFileIconType } from './utils' - -/** - * EditorTabItem - Single tab item in the tab bar - * - * Features: - * - Click to activate - * - Close button (shown on hover or when active) - * - Dirty indicator (orange dot) - * - File type icon based on extension - * - * Design specs from Figma: - * - Height: 32px (pb-2 pt-2.5 = 18px content + padding) - * - Font: 13px, medium (500) when active - * - Icon: 16x16 in 20x20 container - */ +import { getFileIconType } from './utils/file-utils' type EditorTabItemProps = { fileId: string @@ -62,16 +47,13 @@ const EditorTabItem: FC = ({ )} onClick={handleClick} > - {/* Icon with dirty indicator */}
- {/* Dirty indicator dot */} {isDirty && ( )}
- {/* File name */} = ({ {name} - {/* Close button */}