style: gpu selector

This commit is contained in:
jialin
2026-07-07 20:37:39 +08:00
committed by jialin
parent d12e92a916
commit 32fab0fa62
+2 -5
View File
@@ -25,10 +25,7 @@ const Metric: React.FC<{ label: React.ReactNode; value: React.ReactNode }> = ({
value value
}) => ( }) => (
<span style={{ lineHeight: 1.2 }}> <span style={{ lineHeight: 1.2 }}>
{label}:{' '} {label}: <span>{value}</span>
<span className="font-500" style={{ color: 'var(--ant-color-text)' }}>
{value}
</span>
</span> </span>
); );
@@ -70,7 +67,7 @@ const GPUCard: React.FC<{
} }
description={ description={
info || ( info || (
<Flex wrap gap={8} style={{ fontSize: 13 }}> <Flex wrap gap={8} style={{ fontSize: 11 }}>
<Metric <Metric
label={intl.formatMessage({ id: 'resources.table.total' })} label={intl.formatMessage({ id: 'resources.table.total' })}
value={convertFileSize(data?.memory?.total || 0)} value={convertFileSize(data?.memory?.total || 0)}