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): refine rate limit recovery guidance (#17025)

Arvin Xud1248b99638f
diff --git a/locales/en-US/chat.json b/locales/en-US/chat.json
index 666421584b5..d9ca42b03e6 100644
--- a/locales/en-US/chat.json
+++ b/locales/en-US/chat.json
@@ -100,21 +100,24 @@
"cliOverloadedGuide.retryHint": "Wait a few seconds and retry. If it keeps failing, the provider may be having a wider incident.",
"cliOverloadedGuide.title": "{{name}} is temporarily overloaded",
"cliRateLimitGuide.actions.openSystemTools": "Open System Tools",
- "cliRateLimitGuide.actions.retry": "Retry",
- "cliRateLimitGuide.afterReset": "Wait until the reset time, then retry your message. If you are using API authorization, you can also check your provider quota and billing status.",
+ "cliRateLimitGuide.actions.retry": "Retry message",
+ "cliRateLimitGuide.afterReset": "This account has reached its weekly usage limit. You can continue after {{resetAt}}.",
"cliRateLimitGuide.desc": "{{name}} has reached its current usage limit and cannot continue this run right now.",
- "cliRateLimitGuide.limitType": "Limit window",
- "cliRateLimitGuide.limitTypes.weekCycle": "Week cycle",
+ "cliRateLimitGuide.limitType": "Quota cycle",
+ "cliRateLimitGuide.limitTypes.weekCycle": "Weekly",
"cliRateLimitGuide.relative.day_one": "{{count}} day",
"cliRateLimitGuide.relative.day_other": "{{count}} days",
"cliRateLimitGuide.relative.hour_one": "{{count}} hour",
"cliRateLimitGuide.relative.hour_other": "{{count}} hours",
"cliRateLimitGuide.relative.minute_one": "{{count}} minute",
"cliRateLimitGuide.relative.minute_other": "{{count}} minutes",
+ "cliRateLimitGuide.relative.resetComplete": "Reset complete",
"cliRateLimitGuide.relative.soon": "Resets soon",
- "cliRateLimitGuide.resetAt": "Resets at",
- "cliRateLimitGuide.resetInApprox": "Resets in about {{duration}}",
- "cliRateLimitGuide.title": "{{name}} usage limit reached",
+ "cliRateLimitGuide.resetAt": "Reset time",
+ "cliRateLimitGuide.resetIn": "Time remaining",
+ "cliRateLimitGuide.resetInApprox": "About {{duration}}",
+ "cliRateLimitGuide.resetUnknown": "the quota resets",
+ "cliRateLimitGuide.title": "{{name}} is temporarily unavailable",
"codexInstallGuide.actions.openDocs": "Open Install Guide",
"codexInstallGuide.actions.openSystemTools": "Open System Tools",
"codexInstallGuide.afterInstall": "After installing, run Codex once to sign in, then retry your message or click Re-detect in System Tools.",
diff --git a/locales/zh-CN/chat.json b/locales/zh-CN/chat.json
index 0890c3de0a6..dcf92fa9fbf 100644
--- a/locales/zh-CN/chat.json
+++ b/locales/zh-CN/chat.json
@@ -100,21 +100,24 @@
"cliOverloadedGuide.retryHint": "稍等几秒重试即可。如果一直失败,可能是模型服务商出现了更大范围的故障。",
"cliOverloadedGuide.title": "{{name}} 服务暂时繁忙",
"cliRateLimitGuide.actions.openSystemTools": "打开系统工具",
- "cliRateLimitGuide.actions.retry": "重试",
- "cliRateLimitGuide.afterReset": "请等到重置时间后再重试这条消息。如果你当前使用的是 API 授权,也可以检查对应提供商的额度和计费状态。",
+ "cliRateLimitGuide.actions.retry": "重试这条消息",
+ "cliRateLimitGuide.afterReset": "当前账号已达到本周使用上限,{{resetAt}} 后可继续使用。",
"cliRateLimitGuide.desc": "{{name}} 已达到当前使用上限,这次运行暂时无法继续。",
- "cliRateLimitGuide.limitType": "限制周期",
- "cliRateLimitGuide.limitTypes.weekCycle": "Week 周期",
+ "cliRateLimitGuide.limitType": "额度周期",
+ "cliRateLimitGuide.limitTypes.weekCycle": "每周",
"cliRateLimitGuide.relative.day_one": "{{count}} 天",
"cliRateLimitGuide.relative.day_other": "{{count}} 天",
"cliRateLimitGuide.relative.hour_one": "{{count}} 小时",
"cliRateLimitGuide.relative.hour_other": "{{count}} 小时",
"cliRateLimitGuide.relative.minute_one": "{{count}} 分钟",
"cliRateLimitGuide.relative.minute_other": "{{count}} 分钟",
+ "cliRateLimitGuide.relative.resetComplete": "已重置",
"cliRateLimitGuide.relative.soon": "即将重置",
- "cliRateLimitGuide.resetAt": "重置时间",
- "cliRateLimitGuide.resetInApprox": "约 {{duration}} 后重置",
- "cliRateLimitGuide.title": "{{name}} 已达到使用上限",
+ "cliRateLimitGuide.resetAt": "恢复时间",
+ "cliRateLimitGuide.resetIn": "剩余时间",
+ "cliRateLimitGuide.resetInApprox": "约 {{duration}}",
+ "cliRateLimitGuide.resetUnknown": "额度重置",
+ "cliRateLimitGuide.title": "{{name}} 暂时不可用",
"codexInstallGuide.actions.openDocs": "打开安装指南",
"codexInstallGuide.actions.openSystemTools": "打开系统工具",
"codexInstallGuide.afterInstall": "安装完成后,请先运行一次 Codex 完成登录,然后重试刚才的消息,或在系统工具中点击“重新检测”。",
diff --git a/packages/locales/src/default/chat.ts b/packages/locales/src/default/chat.ts
index 557c20b9236..17fce0b475c 100644
--- a/packages/locales/src/default/chat.ts
+++ b/packages/locales/src/default/chat.ts
@@ -508,23 +508,26 @@ export default {
'Wait a few seconds and retry. If it keeps failing, the provider may be having a wider incident.',
'cliOverloadedGuide.title': '{{name}} is temporarily overloaded',
'cliRateLimitGuide.actions.openSystemTools': 'Open System Tools',
- 'cliRateLimitGuide.actions.retry': 'Retry',
+ 'cliRateLimitGuide.actions.retry': 'Retry message',
'cliRateLimitGuide.afterReset':
- 'Wait until the reset time, then retry your message. If you are using API authorization, you can also check your provider quota and billing status.',
+ 'This account has reached its weekly usage limit. You can continue after {{resetAt}}.',
'cliRateLimitGuide.desc':
'{{name}} has reached its current usage limit and cannot continue this run right now.',
- 'cliRateLimitGuide.limitType': 'Limit window',
- 'cliRateLimitGuide.limitTypes.weekCycle': 'Week cycle',
+ 'cliRateLimitGuide.limitType': 'Quota cycle',
+ 'cliRateLimitGuide.limitTypes.weekCycle': 'Weekly',
'cliRateLimitGuide.relative.day_one': '{{count}} day',
'cliRateLimitGuide.relative.day_other': '{{count}} days',
'cliRateLimitGuide.relative.hour_one': '{{count}} hour',
'cliRateLimitGuide.relative.hour_other': '{{count}} hours',
'cliRateLimitGuide.relative.minute_one': '{{count}} minute',
'cliRateLimitGuide.relative.minute_other': '{{count}} minutes',
+ 'cliRateLimitGuide.relative.resetComplete': 'Reset complete',
'cliRateLimitGuide.relative.soon': 'Resets soon',
- 'cliRateLimitGuide.resetAt': 'Resets at',
- 'cliRateLimitGuide.resetInApprox': 'Resets in about {{duration}}',
- 'cliRateLimitGuide.title': '{{name}} usage limit reached',
+ 'cliRateLimitGuide.resetAt': 'Reset time',
+ 'cliRateLimitGuide.resetIn': 'Time remaining',
+ 'cliRateLimitGuide.resetInApprox': 'About {{duration}}',
+ 'cliRateLimitGuide.resetUnknown': 'the quota resets',
+ 'cliRateLimitGuide.title': '{{name}} is temporarily unavailable',
'codexInstallGuide.actions.openDocs': 'Open Install Guide',
'codexInstallGuide.actions.openSystemTools': 'Open System Tools',
'codexInstallGuide.afterInstall':
diff --git a/src/features/Electron/HeterogeneousAgent/StatusGuide/GuideActions.tsx b/src/features/Electron/HeterogeneousAgent/StatusGuide/GuideActions.tsx
index 8ad4dd30933..3870f678d4d 100644
--- a/src/features/Electron/HeterogeneousAgent/StatusGuide/GuideActions.tsx
+++ b/src/features/Electron/HeterogeneousAgent/StatusGuide/GuideActions.tsx
@@ -11,6 +11,7 @@ interface GuideActionsProps {
openDocsLabel?: string;
openSystemToolsLabel?: string;
retryLabel?: string;
+ retryPrimary?: boolean;
showDocs?: boolean;
}
@@ -21,6 +22,7 @@ const GuideActions = ({
openDocsLabel,
openSystemToolsLabel,
retryLabel,
+ retryPrimary = false,
showDocs = false,
}: GuideActionsProps) => {
const showDocsButton = showDocs && Boolean(docsUrl && openDocsLabel);
@@ -32,7 +34,12 @@ const GuideActions = ({
return (
<Flexbox horizontal gap={8} justify="flex-end" style={{ flexWrap: 'wrap' }}>
{showRetryButton && (
- <Button icon={<RotateCcw size={14} />} size="small" onClick={onRetry}>
+ <Button
+ icon={<RotateCcw size={14} />}
+ size="small"
+ type={retryPrimary ? 'primary' : undefined}
+ onClick={onRetry}
+ >
{retryLabel}
</Button>
)}
diff --git a/src/features/Electron/HeterogeneousAgent/StatusGuide/index.test.tsx b/src/features/Electron/HeterogeneousAgent/StatusGuide/index.test.tsx
index adb7284711e..2a6d90b1579 100644
--- a/src/features/Electron/HeterogeneousAgent/StatusGuide/index.test.tsx
+++ b/src/features/Electron/HeterogeneousAgent/StatusGuide/index.test.tsx
@@ -17,8 +17,16 @@ vi.mock('@lobehub/icons', () => ({
vi.mock('@lobehub/ui', () => ({
Avatar: ({ avatar }: { avatar?: ReactNode }) => <div>{avatar}</div>,
Block: ({ children }: { children?: ReactNode }) => <div>{children}</div>,
- Button: ({ children, onClick }: { children?: ReactNode; onClick?: () => void }) => (
- <button type="button" onClick={onClick}>
+ Button: ({
+ children,
+ onClick,
+ type,
+ }: {
+ children?: ReactNode;
+ onClick?: () => void;
+ type?: string;
+ }) => (
+ <button data-variant={type} type="button" onClick={onClick}>
{children}
</button>
),
@@ -34,6 +42,8 @@ vi.mock('@lobehub/ui', () => ({
}));
vi.mock('antd-style', () => ({
+ createStaticStyles: (factory: (helpers: { css: () => string }) => Record<string, string>) =>
+ factory({ css: () => 'mock-class' }),
cssVar: {
colorBgElevated: 'transparent',
colorFillQuaternary: 'transparent',
@@ -56,7 +66,13 @@ vi.mock('react-i18next', () => ({
},
t: (
key: string,
- options?: { count?: number; duration?: string; message?: string; name?: string },
+ options?: {
+ count?: number;
+ duration?: string;
+ message?: string;
+ name?: string;
+ resetAt?: string;
+ },
) => {
if (key === 'cliRateLimitGuide.relative.day') {
return `${options?.count ?? 0} ${(options?.count ?? 0) === 1 ? 'day' : 'days'}`;
@@ -71,7 +87,11 @@ vi.mock('react-i18next', () => ({
}
if (key === 'cliRateLimitGuide.resetInApprox') {
- return `Resets in about ${options?.duration ?? ''}`;
+ return `About ${options?.duration ?? ''}`;
+ }
+
+ if (key === 'cliRateLimitGuide.afterReset') {
+ return `This account has reached its weekly usage limit. You can continue after ${options?.resetAt ?? ''}.`;
}
if (key === 'cliOverloadedGuide.autoRetry.status') {
@@ -100,14 +120,16 @@ vi.mock('react-i18next', () => ({
'Wait a few seconds and retry. If it keeps failing, the provider may be having a wider incident.',
'cliOverloadedGuide.title': `${options?.name ?? ''} is temporarily overloaded`,
'cliRateLimitGuide.actions.openSystemTools': 'Open System Tools',
- 'cliRateLimitGuide.afterReset':
- 'Wait until the reset time, then retry your message. If you are using API authorization, you can also check your provider quota and billing status.',
+ 'cliRateLimitGuide.actions.retry': 'Retry message',
'cliRateLimitGuide.desc': `${options?.name ?? ''} has reached its current usage limit and cannot continue this run right now.`,
- 'cliRateLimitGuide.limitType': 'Limit window',
- 'cliRateLimitGuide.limitTypes.weekCycle': 'Week cycle',
+ 'cliRateLimitGuide.limitType': 'Quota cycle',
+ 'cliRateLimitGuide.limitTypes.weekCycle': 'Weekly',
+ 'cliRateLimitGuide.relative.resetComplete': 'Reset complete',
'cliRateLimitGuide.relative.soon': 'Resets soon',
- 'cliRateLimitGuide.resetAt': 'Resets at',
- 'cliRateLimitGuide.title': `${options?.name ?? ''} usage limit reached`,
+ 'cliRateLimitGuide.resetAt': 'Reset time',
+ 'cliRateLimitGuide.resetIn': 'Time remaining',
+ 'cliRateLimitGuide.resetUnknown': 'the quota resets',
+ 'cliRateLimitGuide.title': `${options?.name ?? ''} is temporarily unavailable`,
'claudeCodeInstallGuide.actions.openDocs': 'Open Install Guide',
'claudeCodeInstallGuide.actions.openSystemTools': 'Open System Tools',
'claudeCodeInstallGuide.afterInstall':
@@ -234,6 +256,7 @@ describe('HeterogeneousAgentStatusGuide', () => {
it('renders rate-limit guidance with structured metadata', () => {
vi.useFakeTimers();
vi.setSystemTime(new Date('2026-04-23T13:27:00+08:00'));
+ const onRetry = vi.fn();
try {
render(
@@ -248,14 +271,15 @@ describe('HeterogeneousAgentStatusGuide', () => {
resetsAt: 1_776_992_400,
},
}}
+ onRetry={onRetry}
/>,
);
- expect(screen.getByText('Claude Code usage limit reached')).toBeInTheDocument();
- expect(screen.getByText(/Resets in about 19 hours 33 minutes/)).toBeInTheDocument();
+ expect(screen.getByText('Claude Code is temporarily unavailable')).toBeInTheDocument();
+ expect(screen.getByText('About 19 hours 33 minutes')).toBeInTheDocument();
expect(
screen.getByText(
- 'Wait until the reset time, then retry your message. If you are using API authorization, you can also check your provider quota and billing status.',
+ /This account has reached its weekly usage limit. You can continue after .*\./,
),
).toBeInTheDocument();
expect(
@@ -263,13 +287,50 @@ describe('HeterogeneousAgentStatusGuide', () => {
'Claude Code has reached its current usage limit and cannot continue this run right now.',
),
).not.toBeInTheDocument();
- expect(screen.getByText('Resets at')).toBeInTheDocument();
- expect(screen.getByText('Limit window')).toBeInTheDocument();
- expect(screen.getByText('Week cycle')).toBeInTheDocument();
- expect(screen.getByText(/Fri 9:00 AM \(Asia\/Shanghai\)/)).toBeInTheDocument();
- expect(screen.getByText(/Asia\/Shanghai/)).toBeInTheDocument();
+ expect(screen.getByText('Reset time')).toBeInTheDocument();
+ expect(screen.getByText('Time remaining')).toBeInTheDocument();
+ expect(screen.getByText('Quota cycle')).toBeInTheDocument();
+ expect(screen.getByText('Weekly')).toBeInTheDocument();
+ expect(screen.getAllByText(/Fri, Apr 24, 9:00 AM \(Asia\/Shanghai\)/)).toHaveLength(2);
expect(screen.queryByText('Open Install Guide')).not.toBeInTheDocument();
expect(screen.queryByText('Recommended install')).not.toBeInTheDocument();
+ const retryButton = screen.getByRole('button', { name: 'Retry message' });
+ expect(retryButton).not.toHaveAttribute('data-variant', 'primary');
+ retryButton.click();
+ expect(onRetry).toHaveBeenCalledTimes(1);
+ } finally {
+ vi.useRealTimers();
+ }
+ });
+
+ it('allows retry after the quota reset time has passed', () => {
+ vi.useFakeTimers();
+ vi.setSystemTime(new Date('2026-04-25T13:27:00+08:00'));
+ const onRetry = vi.fn();
+
+ try {
+ render(
+ <HeterogeneousAgentStatusGuide
+ agentType={'claude-code'}
+ error={{
+ agentType: 'claude-code',
+ code: HeterogeneousAgentSessionErrorCode.RateLimit,
+ message: "You've hit your limit",
+ rateLimitInfo: {
+ rateLimitType: 'seven_day',
+ resetsAt: 1_776_992_400,
+ },
+ }}
+ onRetry={onRetry}
+ />,
+ );
+
+ const retryButton = screen.getByRole('button', { name: 'Retry message' });
+ expect(screen.getByText('Reset complete')).toBeInTheDocument();
+ expect(screen.queryByText('Resets soon')).not.toBeInTheDocument();
+ expect(retryButton).toHaveAttribute('data-variant', 'primary');
+ retryButton.click();
+ expect(onRetry).toHaveBeenCalledTimes(1);
} finally {
vi.useRealTimers();
}
@@ -391,7 +452,7 @@ describe('HeterogeneousAgentStatusGuide', () => {
/>,
);
- expect(screen.getByText(/Fri 9:00 AM \(Asia\/Shanghai\)/)).toBeInTheDocument();
+ expect(screen.getAllByText(/Fri 9:00 AM \(Asia\/Shanghai\)/)).toHaveLength(2);
expect(dateTimeFormatSpy).toHaveBeenCalledWith(
'en-US',
expect.objectContaining({
diff --git a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/RateLimitState.tsx b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/RateLimitState.tsx
index 0df51b2b1a3..9c11133ea0e 100644
--- a/src/features/Electron/HeterogeneousAgent/StatusGuide/states/RateLimitState.tsx
+++ b/src/features/Electron/HeterogeneousAgent/StatusGuide/states/RateLimitState.tsx
@@ -1,4 +1,5 @@
-import { Flexbox, Text } from '@lobehub/ui';
+import { Text } from '@lobehub/ui';
+import { createStaticStyles } from 'antd-style';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -6,6 +7,22 @@ import GuideActions from '../GuideActions';
import GuideShell from '../GuideShell';
import type { HeterogeneousAgentGuideStateProps } from '../types';
+const styles = createStaticStyles(({ css }) => ({
+ details: css`
+ display: grid;
+ grid-template-columns: max-content minmax(0, 1fr);
+ gap: 8px 12px;
+ align-items: baseline;
+ `,
+ label: css`
+ font-size: 12px;
+ white-space: nowrap;
+ `,
+ value: css`
+ min-width: 0;
+ `,
+}));
+
const extractTimezoneLabel = (value?: string) => {
if (!value) return;
@@ -13,28 +30,25 @@ const extractTimezoneLabel = (value?: string) => {
return match?.[1];
};
-const RateLimitState = ({
- config,
- error,
- onOpenSystemTools,
- onRetry,
- variant,
-}: HeterogeneousAgentGuideStateProps) => {
+const RateLimitState = ({ config, error, onRetry, variant }: HeterogeneousAgentGuideStateProps) => {
const { t, i18n } = useTranslation('chat');
const rawErrorDetails = error?.stderr || error?.message;
+ const resetsAt = error?.rateLimitInfo?.resetsAt;
+ const canRetry = !resetsAt || resetsAt * 1000 <= Date.now();
const dateLocale = i18n.resolvedLanguage || i18n.language || undefined;
const timezoneLabel = useMemo(
() => extractTimezoneLabel(rawErrorDetails) || Intl.DateTimeFormat().resolvedOptions().timeZone,
[rawErrorDetails],
);
const formattedResetAt = useMemo(() => {
- const resetsAt = error?.rateLimitInfo?.resetsAt;
if (!resetsAt) return;
try {
return new Intl.DateTimeFormat(dateLocale, {
+ day: 'numeric',
hour: 'numeric',
minute: '2-digit',
+ month: 'short',
...(timezoneLabel ? { timeZone: timezoneLabel } : {}),
weekday: 'short',
}).format(new Date(resetsAt * 1000));
@@ -48,7 +62,7 @@ const RateLimitState = ({
return;
}
}
- }, [dateLocale, error?.rateLimitInfo?.resetsAt, timezoneLabel]);
+ }, [dateLocale, resetsAt, timezoneLabel]);
const rateLimitTypeLabel = useMemo(() => {
const rateLimitType = error?.rateLimitInfo?.rateLimitType;
if (!rateLimitType) return;
@@ -60,14 +74,13 @@ const RateLimitState = ({
return rateLimitType.replaceAll('_', ' ');
}, [error?.rateLimitInfo?.rateLimitType, t]);
const relativeResetText = useMemo(() => {
- const resetsAt = error?.rateLimitInfo?.resetsAt;
if (!resetsAt) return;
const now = Date.now();
const diffMs = Math.max(0, resetsAt * 1000 - now);
const totalMinutes = Math.floor(diffMs / 60_000);
- if (totalMinutes <= 0) return t('cliRateLimitGuide.relative.soon');
+ if (totalMinutes <= 0) return t('cliRateLimitGuide.relative.resetComplete');
const days = Math.floor(totalMinutes / (24 * 60));
const hours = Math.floor((totalMinutes % (24 * 60)) / 60);
@@ -82,56 +95,61 @@ const RateLimitState = ({
return parts.length > 0
? t('cliRateLimitGuide.resetInApprox', { duration: parts.slice(0, 2).join(' ') })
- : t('cliRateLimitGuide.relative.soon');
- }, [error?.rateLimitInfo?.resetsAt, t]);
+ : t('cliRateLimitGuide.relative.resetComplete');
+ }, [resetsAt, t]);
return (
<GuideShell
- headerDescription={<Text type="secondary">{t('cliRateLimitGuide.afterReset')}</Text>}
icon={<config.icon size={24} />}
title={t('cliRateLimitGuide.title', { name: config.title })}
variant={variant}
actions={
<GuideActions
retryLabel={t('cliRateLimitGuide.actions.retry')}
- openSystemToolsLabel={
- onRetry ? undefined : t('cliRateLimitGuide.actions.openSystemTools')
- }
- onOpenSystemTools={onRetry ? undefined : onOpenSystemTools}
+ retryPrimary={canRetry}
onRetry={onRetry}
/>
}
+ headerDescription={
+ <Text type="secondary">
+ {t('cliRateLimitGuide.afterReset', {
+ resetAt: formattedResetAt
+ ? `${formattedResetAt}${timezoneLabel ? ` (${timezoneLabel})` : ''}`
+ : t('cliRateLimitGuide.resetUnknown'),
+ })}
+ </Text>
+ }
>
- <Flexbox gap={8}>
+ <div className={styles.details}>
{formattedResetAt && (
- <Flexbox horizontal gap={8} style={{ alignItems: 'baseline' }}>
- <Text strong style={{ fontSize: 12 }}>
+ <>
+ <Text strong className={styles.label}>
{t('cliRateLimitGuide.resetAt')}
</Text>
- <Flexbox
- horizontal
- gap={8}
- style={{ alignItems: 'baseline', flexWrap: 'nowrap', whiteSpace: 'nowrap' }}
- >
+ <div className={styles.value}>
<Text>{`${formattedResetAt}${timezoneLabel ? ` (${timezoneLabel})` : ''}`}</Text>
- {relativeResetText && (
- <Text style={{ fontSize: 12, whiteSpace: 'nowrap' }} type="secondary">
- {relativeResetText}
- </Text>
- )}
- </Flexbox>
- </Flexbox>
+ </div>
+ </>
+ )}
+
+ {relativeResetText && (
+ <>
+ <Text strong className={styles.label}>
+ {t('cliRateLimitGuide.resetIn')}
+ </Text>
+ <Text className={styles.value}>{relativeResetText}</Text>
+ </>
)}
{rateLimitTypeLabel && (
- <Flexbox horizontal align="center" gap={8}>
- <Text strong style={{ fontSize: 12 }}>
+ <>
+ <Text strong className={styles.label}>
{t('cliRateLimitGuide.limitType')}
</Text>
- <Text>{rateLimitTypeLabel}</Text>
- </Flexbox>
+ <Text className={styles.value}>{rateLimitTypeLabel}</Text>
+ </>
)}
- </Flexbox>
+ </div>
</GuideShell>
);
};