0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Updated audio card playback speed characters

Refs https://github.com/TryGhost/Team/issues/1230
This commit is contained in:
Sanne de Vries 2021-12-07 13:16:04 +00:00
parent b6544afff5
commit 259d40641d
2 changed files with 4 additions and 2 deletions

View file

@ -82,11 +82,13 @@
}
.kg-audio-playback-rate {
width: 36px;
padding: 0 4px;
font-family: inherit;
font-size: .85em;
font-weight: 600;
line-height: 1.4em;
text-align: left;
background: transparent;
}

View file

@ -96,11 +96,11 @@ const handleAudioPlayer = function (audioElementContainer) {
if (playbackRate === 1.0) {
audio.playbackRate = 2;
playbackRate = 2;
playbackRateContainer.textContent = '2x';
playbackRateContainer.textContent = '2×';
} else {
audio.playbackRate = 1.0;
playbackRate = 1.0;
playbackRateContainer.textContent = '1x';
playbackRateContainer.textContent = '1×';
}
});