fix: enable horizontal scrolling and dynamic SVG expansion#969
Open
shahasshrestha wants to merge 1 commit into
Open
fix: enable horizontal scrolling and dynamic SVG expansion#969shahasshrestha wants to merge 1 commit into
shahasshrestha wants to merge 1 commit into
Conversation
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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.