Skip to content

🤯 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.

💄 style: agent documents (#13857)

Arvin Xu2cf65e9fb3ac
diff --git a/packages/const/src/layoutTokens.ts b/packages/const/src/layoutTokens.ts
index 0b93c45670b..29c242b7a3b 100644
--- a/packages/const/src/layoutTokens.ts
+++ b/packages/const/src/layoutTokens.ts
@@ -22,6 +22,8 @@ export const FORM_STYLE: FormProps = {
};
export const MOBILE_HEADER_ICON_SIZE: ActionIconProps['size'] = { blockSize: 36, size: 22 };
export const DESKTOP_HEADER_ICON_SIZE: ActionIconProps['size'] = { blockSize: 32, size: 20 };
+export const DESKTOP_HEADER_ICON_SMALL_SIZE: ActionIconProps['size'] = { blockSize: 28, size: 16 };
+
export const HEADER_ICON_SIZE = (mobile?: boolean) =>
mobile ? MOBILE_HEADER_ICON_SIZE : DESKTOP_HEADER_ICON_SIZE;
export const PWA_INSTALL_ID = 'pwa-install';
diff --git a/src/routes/(main)/agent/features/Conversation/Header/HeaderActions/index.tsx b/src/routes/(main)/agent/features/Conversation/Header/HeaderActions/index.tsx
index 4f5b39c36e9..b375254a581 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/HeaderActions/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/HeaderActions/index.tsx
@@ -4,7 +4,7 @@ import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontal } from 'lucide-react';
import { memo } from 'react';
-import { DESKTOP_HEADER_ICON_SIZE } from '@/const/layoutTokens';
+import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';
import { useMenu } from './useMenu';
@@ -13,7 +13,7 @@ const HeaderActions = memo(() => {
return (
<DropdownMenu items={menuItems}>
- <ActionIcon icon={MoreHorizontal} size={DESKTOP_HEADER_ICON_SIZE} />
+ <ActionIcon icon={MoreHorizontal} size={DESKTOP_HEADER_ICON_SMALL_SIZE} />
</DropdownMenu>
);
});
diff --git a/src/routes/(main)/agent/features/Conversation/Header/ShareButton/index.tsx b/src/routes/(main)/agent/features/Conversation/Header/ShareButton/index.tsx
index 895fa3a3760..e4c94e885ed 100644
--- a/src/routes/(main)/agent/features/Conversation/Header/ShareButton/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/Header/ShareButton/index.tsx
@@ -7,7 +7,7 @@ import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { withSuspense } from '@/components/withSuspense';
-import { DESKTOP_HEADER_ICON_SIZE, MOBILE_HEADER_ICON_SIZE } from '@/const/layoutTokens';
+import { DESKTOP_HEADER_ICON_SMALL_SIZE, MOBILE_HEADER_ICON_SIZE } from '@/const/layoutTokens';
import { useShareModal } from '@/features/ShareModal';
import { useChatStore } from '@/store/chat';
import { useServerConfigStore } from '@/store/serverConfig';
@@ -33,7 +33,7 @@ const ShareButton = memo<ShareButtonProps>(({ mobile, setOpen, open }) => {
const iconButton = (
<ActionIcon
icon={Share2}
- size={mobile ? MOBILE_HEADER_ICON_SIZE : DESKTOP_HEADER_ICON_SIZE}
+ size={mobile ? MOBILE_HEADER_ICON_SIZE : DESKTOP_HEADER_ICON_SMALL_SIZE}
title={t('share')}
tooltipProps={{
placement: 'bottom',
diff --git a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx
index 9b2c9f9a102..f1fbbe9f886 100644
--- a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx
@@ -8,7 +8,6 @@ import RightPanel from '@/features/RightPanel';
import { useGlobalStore } from '@/store/global';
import AgentDocumentEditorPanel from './AgentDocumentEditorPanel';
-import ProgressSection from './ProgressSection';
import ResourcesSection from './ResourcesSection';
interface AgentWorkingSidebarProps {
@@ -47,7 +46,7 @@ const AgentWorkingSidebar = memo<AgentWorkingSidebarProps>(
/>
<Flexbox gap={8} height={'100%'} style={{ overflowY: 'auto' }} width={'100%'}>
{/* <AgentSummary /> */}
- <ProgressSection />
+ {/*<ProgressSection />*/}
<ResourcesSection
selectedDocumentId={selectedDocumentId}
onSelectDocument={onSelectDocument}