Align combined defect chart rows and spacing

This commit is contained in:
2026-10-24 10:29:37 +08:00
parent e2fb128911
commit 55327df5e4
3 changed files with 17 additions and 5 deletions
+1
View File
@@ -272,6 +272,7 @@ function AnalysisVisualCard({ visual, beforeExport }: { visual: AnalysisVisual;
tabIndex={0}
aria-label={`${chartSummary(visual)}。按 Enter 或空格查看数据。`}
aria-busy={chartLoading}
style={visual.sectionKey === 'defect_combined' ? { height: Math.max(320, visual.categories.length * 38 + 48) } : undefined}
onClick={openData}
onKeyDown={event => {
if (event.key === 'Enter' || event.key === ' ') { event.preventDefault(); openData(); }