Skip to content

fix: enable horizontal scrolling and dynamic SVG expansion#969

Open
shahasshrestha wants to merge 1 commit into
fwdDevfrom
bugFix-966
Open

fix: enable horizontal scrolling and dynamic SVG expansion#969
shahasshrestha wants to merge 1 commit into
fwdDevfrom
bugFix-966

Conversation

@shahasshrestha
Copy link
Copy Markdown
Collaborator

@shahasshrestha shahasshrestha commented Jun 5, 2026

BUG: #966

FIx: Updated the #orgChart styling to fix a layout issue that was preventing proper horizontal scrolling and expansion of the D3 chart.
Issue: the container was using display: flex, which caused the browser to try to constrain the SVG within the available space instead of allowing it to overflow. By switching it to display: block, we let the SVG expand naturally based on its computed width.
Add Fix: enabled overflow-x: auto so that when the SVG grows wider than the viewport, the container provides a horizontal scrollbar
Scoped the SVG styling under #orgChart and set it to display: block to ensure it behaves like a full-width element and doesn’t inherit inline rendering quirks.
Summary: these changes ensure that the chart can expand dynamically and remain fully navigable even for deeper hierarchies.
image
image

@shahasshrestha
Copy link
Copy Markdown
Collaborator Author

Successful Build:
image

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.

1 participant