🤯 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: remove CSS rules that target removed antd classes (#21046)
Innei38c6b2e47909
diff --git a/src/components/TipGuide/index.tsx b/src/components/TipGuide/index.tsxindex 19d357b99d9..0a06e4483a2 100644--- a/src/components/TipGuide/index.tsx+++ b/src/components/TipGuide/index.tsx@@ -1,4 +1,4 @@-import { createStaticStyles, cx, Flexbox, Popover } from '@lobehub/ui';+import { createStaticStyles, Flexbox, Popover } from '@lobehub/ui';import { ActionIcon, type PopoverPlacement } from '@lobehub/ui';import { XIcon } from 'lucide-react';import { type CSSProperties, type FC, type ReactNode } from 'react';@@ -16,11 +16,6 @@ const styles = createStaticStyles(({ css }) => {justify-content: end;width: 100%;`,- overlay: css`- .ant-popover-inner {- border: none;- }- `,tip: css`position: absolute;inset-inline-start: 50%;@@ -99,12 +94,10 @@ const TipGuide: FC<TipGuideProps> = ({><Popoverarrow={true}+ classNames={{ root: className }}open={open}placement={placement}trigger="hover"- classNames={{- root: cx(className, styles.overlay),- }}content={<Flexbox horizontal gap={24} style={{ userSelect: 'none' }}><div>{title}</div>diff --git a/src/features/AgentProfileArtwork/index.tsx b/src/features/AgentProfileArtwork/index.tsxindex eaf8a81b1ff..9c7cdea2ae3 100644--- a/src/features/AgentProfileArtwork/index.tsx+++ b/src/features/AgentProfileArtwork/index.tsx@@ -48,10 +48,6 @@ const styles = createStaticStyles(({ css }) => ({border-radius: calc(${cssVar.borderRadiusLG} + 4px);background: ${cssVar.colorBgContainer};-- .ant-avatar:focus {- outline: none;- }`,avatarGenerating: css`pointer-events: none;@@ -97,11 +93,6 @@ const styles = createStaticStyles(({ css }) => ({opacity: 1;}`,- avatarPicker: css`- .ant-tabs-tab:has([id$='-tab-generate']) {- order: -1;- }- `,compactBackground: css`height: 80px;`,@@ -495,7 +486,7 @@ export const AgentProfileArtwork = memo<AgentProfileArtworkProps>(key={avatarRemountKey(avatar)}locale={locale}open={canEdit ? undefined : false}- popupClassName={`${styles.avatarPicker} agent-avatar-artwork-picker`}+ popupClassName="agent-avatar-artwork-picker"popupProps={{ placement: 'bottomLeft' }}shape={'square'}size={72}diff --git a/src/features/AgentProfileCard/index.tsx b/src/features/AgentProfileCard/index.tsxindex 3cfaca1364e..36628a2f4ed 100644--- a/src/features/AgentProfileCard/index.tsx+++ b/src/features/AgentProfileCard/index.tsx@@ -48,19 +48,6 @@ const styles = createStaticStyles(({ css, cssVar }) => ({color: ${cssVar.colorTextSecondary};text-overflow: ellipsis;`,- descriptionSkeleton: css`- .ant-skeleton-paragraph {- margin-block-start: 4px !important;- }-- .ant-skeleton-paragraph > li {- height: 12px !important;- }-- .ant-skeleton-paragraph > li + li {- margin-block-start: 6px !important;- }- `,header: css`position: relative;margin-block-start: -24px;@@ -139,11 +126,7 @@ const AgentProfileCard = memo<AgentProfileCardProps>(</Text></Tooltip>) : loading ? (- <Skeleton.Text- className={styles.descriptionSkeleton}- rows={2}- width={['100%', '60%']}- />+ <Skeleton.Text rows={2} width={['100%', '60%']} />) : null}</Flexbox></Flexbox>diff --git a/src/features/ChatInput/ActionBar/Params/Controls.tsx b/src/features/ChatInput/ActionBar/Params/Controls.tsxindex 7d2fff56b6a..ff908bcdbd2 100644--- a/src/features/ChatInput/ActionBar/Params/Controls.tsx+++ b/src/features/ChatInput/ActionBar/Params/Controls.tsx@@ -214,19 +214,6 @@ const styles = createStaticStyles(({ css }) => ({background: ${cssVar.colorBgElevated};box-shadow: ${cssVar.boxShadowSecondary};-- .ant-switch {- min-width: 28px;- background: ${cssVar.colorFillSecondary};- }-- .ant-switch .ant-switch-handle::before {- background: ${cssVar.colorBgElevated};- }-- .ant-switch.ant-switch-checked {- background: ${cssVar.colorText};- }`,sidebarPanel: css`width: 100%;@@ -270,61 +257,6 @@ const styles = createStaticStyles(({ css }) => ({`,slider: css`width: 100%;-- .ant-slider {- margin-block: 0;- margin-inline: 0;- }-- .ant-slider-rail {- background: ${cssVar.colorFillQuaternary};- }-- .ant-slider-track {- background: ${cssVar.colorTextSecondary};- }-- .ant-slider-handle::after {- background: ${cssVar.colorBgElevated};- box-shadow: 0 0 0 2px ${cssVar.colorTextSecondary};- }-- .ant-slider-handle:hover::after,- .ant-slider-handle:focus::after,- .ant-slider-handle:active::after {- box-shadow: 0 0 0 3px ${cssVar.colorTextSecondary};- }-- .ant-input-number,- .ant-input-number-affix-wrapper {- overflow: hidden;-- height: 28px;- border: none;- border-radius: 10px;-- color: ${cssVar.colorTextSecondary};-- background: ${cssVar.colorFillTertiary};- box-shadow: none;- }-- .ant-input-number:hover,- .ant-input-number-focused,- .ant-input-number-affix-wrapper:hover,- .ant-input-number-affix-wrapper-focused {- background: ${cssVar.colorFillSecondary};- box-shadow: none;- }-- .ant-input-number-input {- height: 28px;- padding-inline: 6px;-- font-size: 13px;- color: ${cssVar.colorTextSecondary};- text-align: center;- }`,}));diff --git a/src/features/ChatInput/ActionBar/components/ActionDropdown.tsx b/src/features/ChatInput/ActionBar/components/ActionDropdown.tsxindex f11b5b9453a..6008b20c82a 100644--- a/src/features/ChatInput/ActionBar/components/ActionDropdown.tsx+++ b/src/features/ChatInput/ActionBar/components/ActionDropdown.tsx@@ -38,11 +38,6 @@ import { useIsMobile } from '@/hooks/useIsMobile';import { type MenuOpenChangeDetails, shouldVetoMenuClose } from './menuCloseVeto';const styles = createStaticStyles(({ css, cssVar }) => ({- dropdownMenu: css`- .ant-avatar {- margin-inline-end: var(--lobe-margin-xs);- }- `,trigger: css`outline: none;@@ -375,9 +370,9 @@ const ActionDropdown = memo<ActionDropdownProps>(const resolvedPopupClassName = useMemo<DropdownMenuPopupProps['className']>(() => {const popupClassName = popupProps?.className;if (typeof popupClassName === 'function') {- return (state) => cx(styles.dropdownMenu, menu.className, popupClassName(state));+ return (state) => cx(menu.className, popupClassName(state));}- return cx(styles.dropdownMenu, menu.className, popupClassName);+ return cx(menu.className, popupClassName);}, [menu.className, popupProps?.className]);const resolvedPopupStyle = useMemo<DropdownMenuPopupProps['style']>(() => {diff --git a/src/features/ChatInput/ChatInputNotice/Content.tsx b/src/features/ChatInput/ChatInputNotice/Content.tsxindex 2c9be9d60fd..33ff05daabb 100644--- a/src/features/ChatInput/ChatInputNotice/Content.tsx+++ b/src/features/ChatInput/ChatInputNotice/Content.tsx@@ -38,17 +38,6 @@ const styles = createStaticStyles(({ css }) => ({border-radius: ${cssVar.borderRadius};font-size: ${cssVar.fontSizeSM};-- .ant-alert-content {- min-width: 0;- }-- .ant-alert-icon {- flex: none;- height: 18px !important;- margin-block-start: 1px;- margin-inline-end: 0 !important;- }`,list: css`overflow-y: auto;diff --git a/src/features/Conversation/Messages/CompressedGroup/index.tsx b/src/features/Conversation/Messages/CompressedGroup/index.tsxindex 7c4c5acc1f9..baa8234c5f7 100644--- a/src/features/Conversation/Messages/CompressedGroup/index.tsx+++ b/src/features/Conversation/Messages/CompressedGroup/index.tsx@@ -52,11 +52,6 @@ const styles = createStaticStyles(({ css, cssVar }) => ({divider: css`margin: 0;`,- header: css`- .ant-tabs-nav {- margin-block-end: 0;- }- `,messagesContainer: css`padding-block: 8px;`,@@ -155,7 +150,6 @@ const CompressedGroupMessage = memo<CompressedGroupMessageProps>(({ id }) => {<Flexbox horizontal align={'center'} distribution={'space-between'} width={'100%'}><TabsactiveKey={activeTab}- className={styles.header}items={tabItems}variant={'rounded'}onChange={setActiveTab}diff --git a/src/features/Conversation/Messages/components/MessageActionBar/actions/translate.ts b/src/features/Conversation/Messages/components/MessageActionBar/actions/translate.tsindex 160afe97dc0..9d5161ce087 100644--- a/src/features/Conversation/Messages/components/MessageActionBar/actions/translate.ts+++ b/src/features/Conversation/Messages/components/MessageActionBar/actions/translate.ts@@ -1,4 +1,3 @@-import { css, cx } from '@lobehub/ui';import { LanguagesIcon } from 'lucide-react';import { useMemo } from 'react';import { useTranslation } from 'react-i18next';@@ -8,13 +7,6 @@ import { localeOptions } from '@/locales/resources';import { useConversationStore } from '../../../../store';import { defineAction } from '../defineAction';-const translateStyle = css`- .ant-dropdown-menu-sub {- overflow-y: scroll;- max-height: 400px;- }-`;-export const translateAction = defineAction({key: 'translate',useBuild: (ctx) => {@@ -31,7 +23,6 @@ export const translateAction = defineAction({icon: LanguagesIcon,key: 'translate',label: t('translate.action', { ns: 'chat' }),- popupClassName: cx(translateStyle),}),[t, ctx.id, translateMessage],);diff --git a/src/features/Conversation/hooks/useChatListActionsBar.tsx b/src/features/Conversation/hooks/useChatListActionsBar.tsxindex fa45ca2b3e1..b76383d5067 100644--- a/src/features/Conversation/hooks/useChatListActionsBar.tsx+++ b/src/features/Conversation/hooks/useChatListActionsBar.tsx@@ -1,6 +1,5 @@import type { SFSymbol } from '@lobechat/electron-client-ipc';import { type ActionIconGroupItemType } from '@lobehub/ui';-import { css, cx } from '@lobehub/ui';import {ArrowDownFromLine,Copy,@@ -21,13 +20,6 @@ import { useTranslation } from 'react-i18next';import { localeOptions } from '@/locales/resources';-const translateStyle = css`- .ant-dropdown-menu-sub {- overflow-y: scroll;- max-height: 400px;- }-`;-type ActionBarItem = ActionIconGroupItemType & { sfSymbol?: SFSymbol };interface ChatListActionsBar {@@ -146,7 +138,6 @@ export const useChatListActionsBar = ({icon: LanguagesIcon,key: 'translate',label: t('translate.action', { ns: 'chat' }),- popupClassName: cx(translateStyle),},}),[hasThread, isContinuing, isRegenerating, t],diff --git a/src/features/Settings/apikey/features/ApiKeyModal/ScopeSelector.tsx b/src/features/Settings/apikey/features/ApiKeyModal/ScopeSelector.tsxindex 1726a6118f8..883876bcbf5 100644--- a/src/features/Settings/apikey/features/ApiKeyModal/ScopeSelector.tsx+++ b/src/features/Settings/apikey/features/ApiKeyModal/ScopeSelector.tsx@@ -59,20 +59,6 @@ const styles = createStaticStyles(({ css, cssVar }) => ({`,scopeRow: css`flex-wrap: wrap;-- /* keep each label on one line; overflowing items wrap as a whole */- .ant-checkbox-wrapper {- align-items: center;- white-space: nowrap;-- /* antd offsets the box against the first text line (top: 0.2em /- flex-start); with this theme's box size that sinks it below the- label's midline — pin it back to true center */- .ant-checkbox {- inset-block-start: 0;- align-self: center;- }- }`,}));diff --git a/src/routes/(main)/(create)/components/GenerationModelItem.tsx b/src/routes/(main)/(create)/components/GenerationModelItem.tsxindex 487b517525f..5bc010ca4b9 100644--- a/src/routes/(main)/(create)/components/GenerationModelItem.tsx+++ b/src/routes/(main)/(create)/components/GenerationModelItem.tsx@@ -23,16 +23,6 @@ const styles = createStaticStyles(({ css, cssVar }) => ({descriptionText_dark: css`color: ${cssVar.colorText};`,- popover: css`- .ant-popover-inner {- background: ${cssVar.colorBgElevated};- }- `,- popover_dark: css`- .ant-popover-inner {- background: ${cssVar.colorBgSpotlight};- }- `,priceText: css`font-weight: 500;color: ${cssVar.colorTextTertiary};@@ -171,11 +161,7 @@ const GenerationModelItem = memo<GenerationModelItemProps>(if (!showPopover || !popoverContent) return content;return (- <Popover- classNames={{ root: cx(styles.popover, isDarkMode && styles.popover_dark) }}- content={popoverContent}- placement="rightTop"- >+ <Popover content={popoverContent} placement="rightTop">{content}</Popover>);diff --git a/src/routes/(main)/(create)/features/GenerationInput/GenerationModelNotice/index.tsx b/src/routes/(main)/(create)/features/GenerationInput/GenerationModelNotice/index.tsxindex 8d45472d34a..eade03b7931 100644--- a/src/routes/(main)/(create)/features/GenerationInput/GenerationModelNotice/index.tsx+++ b/src/routes/(main)/(create)/features/GenerationInput/GenerationModelNotice/index.tsx@@ -21,26 +21,6 @@ const styles = createStaticStyles(({ css, cssVar }) => ({padding-inline: 8px 10px !important;border-radius: ${cssVar.borderRadius};- .ant-alert-content {- min-width: 0;- }-- .ant-alert-message,- .ant-alert-title {- overflow: hidden;-- font-size: 12px;- line-height: 18px !important;- text-overflow: ellipsis;- white-space: nowrap;- }-- .ant-alert-icon {- flex: none;- height: 18px !important;- margin-inline-end: 6px !important;- }-@media (width <= 768px) {max-width: 100%;}diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Content.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Content.tsxindex db4101bf5da..eee1d33a026 100644--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Content.tsx+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunCreateModal/Content.tsx@@ -31,11 +31,6 @@ const DEFAULT_TIMEOUT_MINUTES = 30;const MAX_TIMEOUT_MINUTES = 240;const styles = createStaticStyles(({ css }) => ({- agentSelect: css`- .ant-select-content-value {- height: 22px !important;- }- `,hint: css`display: inline-block;margin-block-start: 4px;@@ -269,7 +264,6 @@ const RunCreateContent: FC<RunCreateContentProps> = ({<SelectallowClearshowSearch- className={styles.agentSelect}loading={loadingAgents}options={agentOptions}placeholder={t('run.create.agent.placeholder')}diff --git a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Content.tsx b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Content.tsxindex b91d8fde298..9ddb2babdd2 100644--- a/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Content.tsx+++ b/src/routes/(main)/eval/bench/[benchmarkId]/features/RunEditModal/Content.tsx@@ -30,11 +30,6 @@ import { datasetSelectors, useEvalStore } from '@/store/eval';const MAX_TIMEOUT_MINUTES = 240;const styles = createStaticStyles(({ css }) => ({- agentSelect: css`- .ant-select-content-value {- height: 22px !important;- }- `,hint: css`display: inline-block;margin-block-start: 4px;@@ -211,7 +206,6 @@ const RunEditContent: FC<RunEditContentProps> = ({ formId, onLoadingChange, run<SelectallowClearshowSearch- className={styles.agentSelect}loading={loadingAgents}options={agentOptions}placeholder={t('run.create.agent.placeholder')}