diff --git a/src/App/App.tsx b/src/App/App.tsx index c2ecc69..75fbca9 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -406,7 +406,7 @@ export function App() { flex: '0 0 content', overflowY: "auto", overflowX: "visible", - maxWidth: '50vw', + maxWidth: 'min(400px, 50vw)', }}>
[...sounds, src]); + src.addEventListener("ended", () => { + setSounds(sounds => sounds.filter(s => s !== src)); + }) return src; }); // return callback to stop playing