🎨 style(ui): Adjust the size of the icon

This commit is contained in:
Apple\Apple
2025-05-26 22:30:04 +08:00
parent 1e57317322
commit acdfd86286
2 changed files with 12 additions and 12 deletions

View File

@@ -583,7 +583,7 @@ const TokensTable = () => {
size="medium" size="medium"
color="blue" color="blue"
> >
<IconMoneyExchangeStroked /> <IconMoneyExchangeStroked size="large" />
</Avatar> </Avatar>
<div> <div>
<div className="text-sm text-gray-500">{t('当前余额')}</div> <div className="text-sm text-gray-500">{t('当前余额')}</div>
@@ -603,7 +603,7 @@ const TokensTable = () => {
size="medium" size="medium"
color="purple" color="purple"
> >
<IconHistogram /> <IconHistogram size="large" />
</Avatar> </Avatar>
<div> <div>
<div className="text-sm text-gray-500">{t('累计消费')}</div> <div className="text-sm text-gray-500">{t('累计消费')}</div>
@@ -623,7 +623,7 @@ const TokensTable = () => {
size="medium" size="medium"
color="green" color="green"
> >
<IconRotate /> <IconRotate size="large" />
</Avatar> </Avatar>
<div> <div>
<div className="text-sm text-gray-500">{t('请求次数')}</div> <div className="text-sm text-gray-500">{t('请求次数')}</div>

View File

@@ -449,42 +449,42 @@ const Detail = (props) => {
{ {
title: t('当前余额'), title: t('当前余额'),
value: renderQuota(userState?.user?.quota), value: renderQuota(userState?.user?.quota),
icon: <IconMoneyExchangeStroked />, icon: <IconMoneyExchangeStroked size="large" />,
color: 'bg-blue-50', color: 'bg-blue-50',
avatarColor: 'blue', avatarColor: 'blue',
}, },
{ {
title: t('历史消耗'), title: t('历史消耗'),
value: renderQuota(userState?.user?.used_quota), value: renderQuota(userState?.user?.used_quota),
icon: <IconHistogram />, icon: <IconHistogram size="large" />,
color: 'bg-purple-50', color: 'bg-purple-50',
avatarColor: 'purple', avatarColor: 'purple',
}, },
{ {
title: t('请求次数'), title: t('请求次数'),
value: userState.user?.request_count, value: userState.user?.request_count,
icon: <IconRotate />, icon: <IconRotate size="large" />,
color: 'bg-green-50', color: 'bg-green-50',
avatarColor: 'green', avatarColor: 'green',
}, },
{ {
title: t('统计额度'), title: t('统计额度'),
value: renderQuota(consumeQuota), value: renderQuota(consumeQuota),
icon: <IconCoinMoneyStroked />, icon: <IconCoinMoneyStroked size="large" />,
color: 'bg-yellow-50', color: 'bg-yellow-50',
avatarColor: 'yellow', avatarColor: 'yellow',
}, },
{ {
title: t('统计Tokens'), title: t('统计Tokens'),
value: isNaN(consumeTokens) ? 0 : consumeTokens, value: isNaN(consumeTokens) ? 0 : consumeTokens,
icon: <IconTextStroked />, icon: <IconTextStroked size="large" />,
color: 'bg-pink-50', color: 'bg-pink-50',
avatarColor: 'pink', avatarColor: 'pink',
}, },
{ {
title: t('统计次数'), title: t('统计次数'),
value: times, value: times,
icon: <IconPulse />, icon: <IconPulse size="large" />,
color: 'bg-teal-50', color: 'bg-teal-50',
avatarColor: 'cyan', avatarColor: 'cyan',
}, },
@@ -494,7 +494,7 @@ const Detail = (props) => {
times / times /
((Date.parse(end_timestamp) - Date.parse(start_timestamp)) / 60000) ((Date.parse(end_timestamp) - Date.parse(start_timestamp)) / 60000)
).toFixed(3), ).toFixed(3),
icon: <IconStopwatchStroked />, icon: <IconStopwatchStroked size="large" />,
color: 'bg-indigo-50', color: 'bg-indigo-50',
avatarColor: 'indigo', avatarColor: 'indigo',
}, },
@@ -505,7 +505,7 @@ const Detail = (props) => {
((Date.parse(end_timestamp) - Date.parse(start_timestamp)) / 60000); ((Date.parse(end_timestamp) - Date.parse(start_timestamp)) / 60000);
return isNaN(tpm) ? '0' : tpm.toFixed(3); return isNaN(tpm) ? '0' : tpm.toFixed(3);
})(), })(),
icon: <IconTypograph />, icon: <IconTypograph size="large" />,
color: 'bg-orange-50', color: 'bg-orange-50',
avatarColor: 'orange', avatarColor: 'orange',
}, },
@@ -613,7 +613,7 @@ const Detail = (props) => {
</Modal> </Modal>
<Spin spinning={loading}> <Spin spinning={loading}>
<div className="mb-6"> <div className="mb-4">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4"> <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
{statsData.map((stat, idx) => ( {statsData.map((stat, idx) => (
<Card <Card