🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
fix: Border radius of dock
Rene Wang41f1005dfa05
diff --git a/src/features/ResourceManager/components/Editor/index.tsx b/src/features/ResourceManager/components/Editor/index.tsxindex 927caffe98d..ae2ae60dde6 100644--- a/src/features/ResourceManager/components/Editor/index.tsx+++ b/src/features/ResourceManager/components/Editor/index.tsx@@ -13,18 +13,23 @@ import { fileManagerSelectors, useFileStore } from '@/store/file';import Breadcrumb from '../Explorer/Header/Breadcrumb';import FileContent from './FileContent';+interface FileEditorProps {+ onBack?: () => void;+}+/*** View or Edit a file** It's a un-reusable component for business logic only.* So we depend on context, not props.*/-const FileEditor = memo(() => {+const FileEditor = memo<FileEditorProps>(({ onBack }) => {const { t } = useTranslation('common');- const [currentViewItemId, category, setMode, setCurrentViewItemId] = useResourceManagerStore(- (s) => [s.currentViewItemId, s.category, s.setMode, s.setCurrentViewItemId],- );+ const [currentViewItemId, category] = useResourceManagerStore((s) => [+ s.currentViewItemId,+ s.category,+ ]);const fileDetail = useFileStore(fileManagerSelectors.getFileById(currentViewItemId));@@ -33,14 +38,7 @@ const FileEditor = memo(() => {<NavHeaderleft={<Flexbox align={'center'} gap={4} horizontal style={{ minHeight: 32 }}>- <ActionIcon- icon={ArrowLeftIcon}- onClick={() => {- setMode('explorer');- setCurrentViewItemId(undefined);- }}- title={t('back')}- />+ <ActionIcon icon={ArrowLeftIcon} onClick={onBack} title={t('back')} /><Flexbox align={'center'} style={{ marginLeft: 8 }}><Breadcrumb category={category} fileName={fileDetail?.name} /></Flexbox>diff --git a/src/features/ResourceManager/components/UploadDock/index.tsx b/src/features/ResourceManager/components/UploadDock/index.tsxindex c20afd30514..632652fcf65 100644--- a/src/features/ResourceManager/components/UploadDock/index.tsx+++ b/src/features/ResourceManager/components/UploadDock/index.tsx@@ -106,9 +106,10 @@ const UploadDock = memo(() => {style={{background: cssVar.colorBgContainer,borderBottom: expand ? `1px solid ${cssVar.colorSplit}` : undefined,- borderBottomLeftRadius: expand ? 0 : undefined,- borderBottomRightRadius: expand ? 0 : undefined,- borderRadius: 8,+ borderBottomLeftRadius: expand ? 0 : 8,+ borderBottomRightRadius: expand ? 0 : 8,+ borderTopLeftRadius: 8,+ borderTopRightRadius: 8,cursor: 'pointer',paddingBlock: 8,paddingInline: '24px 12px',@@ -136,7 +137,8 @@ const UploadDock = memo(() => {justify={'space-between'}style={{background: `color-mix(in srgb, ${cssVar.colorBgLayout} 95%, white)`,- borderRadius: 8,+ borderBottomLeftRadius: 8,+ borderBottomRightRadius: 8,height: 400,}}>diff --git a/src/features/ResourceManager/index.tsx b/src/features/ResourceManager/index.tsxindex d0fe5c6713b..f0b0ae1f737 100644--- a/src/features/ResourceManager/index.tsx+++ b/src/features/ResourceManager/index.tsx@@ -82,7 +82,7 @@ const ResourceManager = memo(() => {}}width={'100%'}>- <Editor />+ <Editor onBack={handleBack} /></Flexbox>)}