Skip to content

Conversation

@manviisinha
Copy link

@manviisinha manviisinha commented Jan 3, 2026

This PR fixes issue #279, where extra vertical space appeared between stacked plots when the SVG height was set to a value different from the default (400).The issue was caused by SVG elements being rendered as inline elements, which introduces baseline spacing in the layout. This became visible when plot heights were customized.The fix makes SVG elements block-level using CSS, ensuring consistent layout behavior and eliminating unwanted gaps between plots regardless of their height.

Changes Made
Set SVG elements to display: block in the animint CSS

Result
No extra spacing between plots
Layout remains correct for any plot height
No impact on existing behavior or interactivity

@manviisinha manviisinha changed the title fix:extra space between plots by making SVG block-level fix:#279extra space between plots by making SVG block-level Jan 3, 2026
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