Skip to content

Graph SVG has no viewBox, breaks on resize #8

@CalebisGross

Description

@CalebisGross

Problem

`internal/web/static/index.html`: The graph SVG element has no `viewBox` attribute, no `preserveAspectRatio`. The `resizeGraph()` function does a full re-render with 50ms debounce instead of responsive rescaling.

Impact

Graph stretches/squishes on window resize. Switching tabs and returning causes layout issues.

Fix

Add proper SVG viewBox, implement responsive resizing without full re-render.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions