Skip to content

Adjust AudioWaveform SVG to scale with parent width - #72

Merged
timoncool merged 1 commit into
mainfrom
codex/refactor-audiowaveform-for-responsive-svg
Oct 27, 2025
Merged

Adjust AudioWaveform SVG to scale with parent width#72
timoncool merged 1 commit into
mainfrom
codex/refactor-audiowaveform-for-responsive-svg

Conversation

@timoncool

Copy link
Copy Markdown
Owner

Summary

  • make the AudioWaveform SVG stretch to the parent container by using a full-width div and viewBox based on sample count
  • align rect positioning and width with waveform indexes to avoid gaps when scaling
  • guard against empty waveform arrays to avoid rendering and division issues

Testing

  • not run

https://chatgpt.com/codex/tasks/task_e_68ff15fee3d48320833372630caa5812

@vercel

vercel Bot commented Oct 27, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
videosos Ready Ready Preview Comment Oct 27, 2025 6:57am

@timoncool
timoncool merged commit ae48029 into main Oct 27, 2025
8 checks passed
@timoncool
timoncool deleted the codex/refactor-audiowaveform-for-responsive-svg branch October 31, 2025 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant