Skip to content

fix(service-map): stop horizontal overflow from mismatched bleed margin#156

Merged
Makisuo merged 1 commit into
mainfrom
claude/service-map-overflow-40kfoh
Jul 1, 2026
Merged

fix(service-map): stop horizontal overflow from mismatched bleed margin#156
Makisuo merged 1 commit into
mainfrom
claude/service-map-overflow-40kfoh

Conversation

@Makisuo

@Makisuo Makisuo commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

The Service Map page (/service-map) rendered with an unwanted horizontal scrollbar.

The map wrapper used a -mx-6 -mb-6 negative-margin "bleed" to push the ReactFlow canvas edge-to-edge, but its parent PageLayout.ScrollArea only pads its content by p-4 (1rem). The -mx-6/-mb-6 bleed pulls 1.5rem, overshooting the parent padding by 0.5rem per side (1rem total horizontally). Since ScrollArea is overflow-auto, that overshoot surfaced as a horizontal scrollbar.

service-map.tsx was the only route using a -mx-6/-mb-6 bleed — every other page that bleeds already matches its p-4 parent.

Change

  • apps/web/src/routes/service-map.tsx — change the wrapper from -mx-6 -mb-6 to -mx-4 -mb-4 so the bleed exactly cancels the parent's p-4 padding. The map still spans the full content width edge-to-edge; no more overshoot, no horizontal scrollbar.

Testing

  • Verified the negative margin now matches the parent PageLayout.ScrollArea p-4 padding, so the wrapper occupies exactly the scroll area's content width.
  • Note: bun typecheck fails in the CI/sandbox on a pre-existing, unrelated error (Cannot find type definition file for 'vite/client'); this change is a Tailwind class-string edit with no type impact.

🤖 Generated with Claude Code


Generated by Claude Code


Open in Devin Review

The service-map route wrapped the map in a `-mx-6 -mb-6` bleed to extend
the ReactFlow canvas edge-to-edge, but its parent PageLayout.ScrollArea
only pads by `p-4` (1rem). The 1.5rem negative margin overshot the 1rem
padding by 0.5rem per side, pushing content past the overflow-auto box
and producing a horizontal scrollbar. Match the bleed to the parent
padding (`-mx-4 -mb-4`).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JP5QicYhXFPZx5PYBqs3rb
@pullfrog

pullfrog Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Your LLM provider API key was rejected. Rotate the key in your provider dashboard, then update the matching GitHub Actions secret.

Update repo secret → · Model settings → · Setup docs → · Ask in Discord →

Pullfrog  | ⚠️ this action is pinned to a commit SHA, which freezes the cleanup step — switch to @v0 or keep the SHA fresh with Dependabot | Rerun failed job ➔View workflow run | via Pullfrog | Using Claude Opus𝕏

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@Makisuo Makisuo merged commit 620957a into main Jul 1, 2026
7 checks passed
@Makisuo Makisuo deleted the claude/service-map-overflow-40kfoh branch July 1, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants