You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #3777 on July 03, 2024 12:59.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Bug description
On full PC screen the Audio bars when speaking will show correctly at the time I speak. On smaller screens it will show with delay of few seconds.
Environment
Minimal code snippet
const container = document.getElementById('waveform'); if (container) { try { const wavesurfer = WaveSurfer.create({ container: '#waveform', waveColor: 'rgb(200, 0, 200)', progressColor: 'rgb(100, 0, 100)', height: 50, });
return ( <div> {listening && ( <div className={styles.waveContainer}> <div id="waveform" className={styles.soundVisual}></div>
.soundVisual {
width: 75%;
height: 56px;
position: absolute;
margin-right:30px;
}
.waveContainer {
display: flex;
justify-content: center;
position: absolute;
top: -32px;
left: 0;
right: 0;
bottom: 0;
background: #ffffff;
height: 56px;
border-radius: 0.5rem;
border-left: 2px solid #bfbfbf;
border-right: 2px solid #bfbfbf;
}
@media (max-width: 1300px) {
.soundVisual {
width: 65% !important;
}
}
@media (max-width: 1000px) {
.soundVisual {
width: 55% !important;
}
}
@media (max-width: 768px) {
.soundVisual {
width: 40% !important;
}
}
@media (max-width: 600px) {
.soundVisual {
width: 30% !important;
}
}
Expected result
To see the sound bar immediately rendered when I speak on smaller screens
Obtained result
It takes few seconds to show on smaller screens
Screenshots
Beta Was this translation helpful? Give feedback.
All reactions