fix(web): empty state of metric

This commit is contained in:
JzoNg
2026-03-31 17:11:44 +08:00
parent 351b909a53
commit 023fc55bd5

View File

@@ -4,8 +4,13 @@ type MetricSectionEmptyStateProps = {
const MetricSectionEmptyState = ({ description }: MetricSectionEmptyStateProps) => {
return (
<div className="rounded-xl bg-background-section px-4 py-4 text-text-tertiary system-xs-regular">
{description}
<div className="flex items-center gap-5 rounded-xl bg-background-section p-3">
<div className="flex size-10 shrink-0 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg p-1 shadow-md">
<span aria-hidden="true" className="i-ri-bar-chart-horizontal-line h-6 w-6 text-text-primary" />
</div>
<div className="min-w-0 flex-1 text-text-tertiary system-xs-regular">
{description}
</div>
</div>
)
}