Skip to content

fix(dives): the charts fit a phone, and the NDL label clears the depth axis - #288

Open
aleskiontherun wants to merge 3 commits into
mainfrom
claude/dive-profile-phone-layout-de6bdf
Open

aleskiontherun wants to merge 3 commits into
mainfrom
claude/dive-profile-phone-layout-de6bdf

Conversation

@aleskiontherun

Copy link
Copy Markdown
Member

Below 560 px a chart now narrows its viewBox instead of scrolling inside a min-w-[560px] box, so the dive profile, gas consumption and activity charts fit a phone with their axis type held at the 8.6 px it has at 560 px (fittedChartWidth, useChartWidth). X labels thin to whatever the narrower plot holds, and useKeepInside keeps each hover card within its chart now that no scroll container clips it. The profile's deco-panel gap grows from 12 to 16 units, so the labels either side of each rule — depth's 20 against NDL's 100 min, and every panel row boundary below it — no longer touch. From 560 px up the charts draw as before apart from that gap, and the dashboard chart skeleton now matches the charts' phone height.

Verified in Chromium at 1024, 375 and 320 px on seeded dives and dashboards: no <text> boxes overlap, no ancestor has scrollWidth > clientWidth, and hover cards stay inside. New browser-lane tests check the same things and fail against main, and npm run ci is green.

🤖 Generated with Claude Code

aleskiontherun and others added 3 commits September 25, 2026 13:07
…r each other

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the fix Corrects behaviour that was already shipped label Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Corrects behaviour that was already shipped

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant