Merge pull request #6240 from matrix-org/gsouquet/voice-messages-waveform-perf

Improve audio recording performance
This commit is contained in:
Travis Ralston 2021-06-28 20:49:21 -06:00 committed by GitHub
commit b6d9ecde8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 145 additions and 58 deletions

View file

@ -33,9 +33,14 @@ limitations under the License.
font-size: $font-14px;
line-height: $font-24px;
contain: content;
.mx_Waveform {
.mx_Waveform_bar {
background-color: $voice-record-waveform-incomplete-fg-color;
height: 100%;
/* Variable set by a JS component */
transform: scaleY(max(0.05, var(--barHeight)));
&.mx_Waveform_bar_100pct {
// Small animation to remove the mechanical feel of progress