fix: 总分说明移到评分图下方显示
This commit is contained in:
@@ -429,7 +429,6 @@ export default function Dashboard() {
|
||||
</ResponsiveContainer>
|
||||
<div className="absolute inset-0 flex flex-col items-center justify-center px-2 overflow-hidden">
|
||||
<span className={`text-2xl font-bold leading-none ${complianceScore?.level === 'safe' ? 'text-safe' : complianceScore?.level === 'warning' ? 'text-warning' : 'text-danger'}`}>{complianceScore?.overallScore ?? complianceScore?.totalScore ?? 0}</span>
|
||||
<span className="text-xs text-gray-500 mt-1 truncate max-w-full">{complianceScore?.levelLabel ?? complianceScore?.summary ?? ''}</span>
|
||||
</div>
|
||||
</div>
|
||||
{/* 维度评分 */}
|
||||
@@ -471,6 +470,10 @@ export default function Dashboard() {
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
{/* 总分说明 */}
|
||||
{complianceScore?.levelLabel ?? complianceScore?.summary ? (
|
||||
<div className="mt-2 text-xs text-gray-500 text-center">{complianceScore?.levelLabel ?? complianceScore?.summary}</div>
|
||||
) : null}
|
||||
{/* 合同到期预警内联 */}
|
||||
{isSectionVisible('overview_expiring') && expiringContracts && expiringContracts.length > 0 && !dismissedExpiring && (
|
||||
<div className="mt-3 pt-2 border-t flex items-center justify-between">
|
||||
|
||||
Reference in New Issue
Block a user