Commit 02b4344
fix: clamp SVG rect height to prevent negative values in waveform decoration
Math.sin() * 20 can produce -20, making the total height negative when
Math.random() contribution is small. SVG rect doesn't accept negative
height values, causing console errors.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7877d13 commit 02b4344
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments