fix(ui): scale contribution graph to full container width

Use viewBox + width=100% instead of fixed pixel dimensions so the
SVG scales to match the project card grid below.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-05 17:08:17 +03:00
parent 27ce16e630
commit 822def3227

View File

@@ -93,8 +93,8 @@ export function ContributionGraph() {
<p style={{ fontSize: '0.8rem', opacity: 0.6 }}>
{totalCount} contributions in the last year
</p>
<div style={{ overflowX: 'auto' }}>
<svg width={svgWidth} height={svgHeight} className="d-block">
<div>
<svg viewBox={`0 0 ${svgWidth} ${svgHeight}`} width="100%" className="d-block">
{/* Day-of-week labels */}
{DAY_LABELS.map((label, i) =>
label ? (