fix(ui): 修復事件卡片溢出框 + 基礎架構資料欄位錯誤對應
Some checks failed
CD Pipeline / build-and-deploy (push) Failing after 49s
E2E Health Check / e2e-health (push) Successful in 21s

- incident-card: AI提案按鈕 width 100% + margin 造成右側懸浮框,改為 calc(100%-20px)
- page.tsx: useHosts() 返回 Host[] 但直接傳入 HostGrid 期望的 HostInfo[],
  補上 mapper (name→hostname, metrics.cpu_percent→cpuPct, service.status→healthy)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-02 19:01:07 +08:00
parent 9c01ed85a9
commit 9afb518ea6
2 changed files with 12 additions and 3 deletions

View File

@@ -334,7 +334,7 @@ export function IncidentCard({ incident, decision, onApprovalChange }: IncidentC
gap: 5,
fontSize: 13,
color: '#87867f',
width: '100%',
width: 'calc(100% - 20px)',
textAlign: 'left' as const,
fontFamily: 'inherit',
}}