|
|
@@ -92,7 +92,9 @@ function Histogram({ stats }: { stats: GameStats }) {
|
|
|
return (
|
|
|
<div key={idx} style={{ display: 'flex', alignItems: 'center', gap: '8px', marginBottom: '4px' }}>
|
|
|
<span style={{ width: '20px', textAlign: 'right', fontWeight: 'bold', color: '#555' }}>{label}</span>
|
|
|
- <div style={{ flex: 1, height: '20px', backgroundColor: count > 0 ? '#6aaa64' : '#d3d6da', width: `${Math.max(pct, count > 0 ? 5 : 0)}%`, minWidth: count > 0 ? '12px' : '4px', borderRadius: '2px' }} />
|
|
|
+ <div style={{ flex: 1, height: '20px', backgroundColor: '#d3d6da', borderRadius: '2px' }}>
|
|
|
+ <div style={{ height: '100%', backgroundColor: '#6aaa64', width: `${Math.max(pct, count > 0 ? 5 : 0)}%`, minWidth: count > 0 ? '12px' : '0px', borderRadius: '2px' }} />
|
|
|
+ </div>
|
|
|
<span style={{ width: '24px', fontSize: '0.8rem', color: '#555' }}>{count}</span>
|
|
|
</div>
|
|
|
);
|