🤯 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
💄 style: standardize header action icon sizes (#14717)
Innei2d4822ad7b69
diff --git a/src/features/NavPanel/SideBarHeaderLayout.tsx b/src/features/NavPanel/SideBarHeaderLayout.tsxindex 99ca0d1f916..825724f8307 100644--- a/src/features/NavPanel/SideBarHeaderLayout.tsx+++ b/src/features/NavPanel/SideBarHeaderLayout.tsx@@ -11,6 +11,7 @@ import { memo } from 'react';import { flushSync } from 'react-dom';import { useNavigate } from 'react-router-dom';+import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';import { isDesktop } from '@/const/version';import { isModifierClick } from '@/utils/navigation';@@ -75,7 +76,7 @@ const SideBarHeaderLayout = memo<SideBarHeaderLayoutProps>(overflow: 'hidden',}}>- {showBack && <BackButton size={SIDEBAR_HEADER_ACTION_ICON_SIZE} to={backTo} />}+ {showBack && <BackButton size={DESKTOP_HEADER_ICON_SMALL_SIZE} to={backTo} />}{left && typeof left === 'string' ? (<Text ellipsis fontSize={16} weight={500}>{left}@@ -123,9 +124,7 @@ const SideBarHeaderLayout = memo<SideBarHeaderLayoutProps>(>{leftContent}<Flexbox horizontal align={'center'} gap={2} justify={'flex-end'}>- {showTogglePanelButton && (- <ToggleLeftPanelButton size={SIDEBAR_HEADER_ACTION_ICON_SIZE} />- )}+ {showTogglePanelButton && <ToggleLeftPanelButton />}{right}</Flexbox></Flexbox>diff --git a/src/features/NavPanel/ToggleLeftPanelButton.tsx b/src/features/NavPanel/ToggleLeftPanelButton.tsxindex c0324780009..262e4663653 100644--- a/src/features/NavPanel/ToggleLeftPanelButton.tsx+++ b/src/features/NavPanel/ToggleLeftPanelButton.tsx@@ -8,7 +8,7 @@ import { type ReactNode } from 'react';import { memo } from 'react';import { useTranslation } from 'react-i18next';-import { DESKTOP_HEADER_ICON_SIZE } from '@/const/layoutTokens';+import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';import { useGlobalStore } from '@/store/global';import { systemStatusSelectors } from '@/store/global/selectors';import { useUserStore } from '@/store/user';@@ -38,7 +38,7 @@ const ToggleLeftPanelButton = memo<ToggleLeftPanelButtonProps>(active={showActive ? expand : undefined}icon={icon || (expand ? PanelLeftClose : PanelLeftOpen)}id={TOGGLE_BUTTON_ID}- size={size || DESKTOP_HEADER_ICON_SIZE}+ size={size || DESKTOP_HEADER_ICON_SMALL_SIZE}title={title || t('toggleLeftPanel.title', { ns: 'hotkey' })}tooltipProps={{hotkey,diff --git a/src/features/NavPanel/components/BackButton.tsx b/src/features/NavPanel/components/BackButton.tsxindex 36f62b89eec..61fe0aa4812 100644--- a/src/features/NavPanel/components/BackButton.tsx+++ b/src/features/NavPanel/components/BackButton.tsx@@ -4,7 +4,7 @@ import { ChevronLeftIcon } from 'lucide-react';import { memo } from 'react';import { Link } from 'react-router-dom';-import { DESKTOP_HEADER_ICON_SIZE } from '@/const/layoutTokens';+import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';export const BACK_BUTTON_ID = 'lobe-back-button';@@ -15,7 +15,7 @@ const BackButton = memo<ActionIconProps & { to?: string }>(({ to = '/', onClick,<ActionIconicon={ChevronLeftIcon}id={BACK_BUTTON_ID}- size={DESKTOP_HEADER_ICON_SIZE}+ size={DESKTOP_HEADER_ICON_SMALL_SIZE}{...rest}/></Link>diff --git a/src/routes/(main)/agent/_layout/Sidebar/Header/Agent/index.tsx b/src/routes/(main)/agent/_layout/Sidebar/Header/Agent/index.tsxindex 3da518df931..3c95189fbdd 100644--- a/src/routes/(main)/agent/_layout/Sidebar/Header/Agent/index.tsx+++ b/src/routes/(main)/agent/_layout/Sidebar/Header/Agent/index.tsx@@ -6,6 +6,7 @@ import { type PropsWithChildren } from 'react';import React, { memo } from 'react';import { useTranslation } from 'react-i18next';+import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';import { DEFAULT_AVATAR, DEFAULT_INBOX_AVATAR } from '@/const/meta';import { SkeletonItem } from '@/features/NavPanel/components/SkeletonList';import { useAgentStore } from '@/store/agent';@@ -55,7 +56,7 @@ const Agent = memo<PropsWithChildren>(() => {</Text><ActionIconicon={ChevronsUpDownIcon}- size={'small'}+ size={DESKTOP_HEADER_ICON_SMALL_SIZE}style={{width: 24,}}diff --git a/src/routes/(main)/home/_layout/Header/components/InboxButton.tsx b/src/routes/(main)/home/_layout/Header/components/InboxButton.tsxindex 9495d1e113f..5bd68d0bdc0 100644--- a/src/routes/(main)/home/_layout/Header/components/InboxButton.tsx+++ b/src/routes/(main)/home/_layout/Header/components/InboxButton.tsx@@ -6,7 +6,7 @@ import { BellIcon } from 'lucide-react';import { memo, useCallback, useState } from 'react';import { useTranslation } from 'react-i18next';-import { DESKTOP_HEADER_ICON_SIZE } from '@/const/layoutTokens';+import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';import { useClientDataSWR } from '@/libs/swr';import { notificationService } from '@/services/notification';import { serverConfigSelectors, useServerConfigStore } from '@/store/serverConfig';@@ -40,7 +40,7 @@ const InboxButton = memo(() => {<Badge dot={unreadCount > 0} offset={[-6, 6]} size="small"><ActionIconicon={BellIcon}- size={DESKTOP_HEADER_ICON_SIZE}+ size={DESKTOP_HEADER_ICON_SMALL_SIZE}title={t('inbox.title')}onClick={handleToggle}/>