Playback progress now far bottom, prevents visual clash with volume bars (of different widths)

This commit is contained in:
James Barnsley
2022-03-04 22:29:49 +13:00
parent b40f0ec750
commit 4256f4daa8
2 changed files with 18 additions and 10 deletions

View File

@ -155,10 +155,7 @@ const PlaybackControls = () => {
<div className="time time--current">
{playbackPosition ? <Dater type="length" data={playbackPosition} /> : '-'}
</div>
<ProgressSlider
playbackPosition={playbackPosition}
size={slim_mode && 'small'}
/>
<ProgressSlider playbackPosition={playbackPosition} />
<div className="time time--total">
{currentTrack ? <Dater type="length" data={currentTrack.duration} /> : '-'}
</div>

View File

@ -11,9 +11,10 @@
align-content: center;
&__background {
height: 100%;
width: 100%;
position: absolute;
width: 100%;
height: 100%;
bottom: 0;
z-index: -1;
}
@ -225,7 +226,8 @@
}
@include responsive($bp_medium) {
padding-top: 8px;
padding-top: 2px;
padding-bottom: 4px;
&--touch-enabled .control.next {
display: none;
@ -280,10 +282,19 @@
&.progress {
position: absolute;
top: -3px;
top: auto;
bottom: -10px;
left: 0;
right: 0;
.slider__track {
border-radius: 0;
&__progress {
border-radius: 0;
}
}
.time {
display: none;
}
@ -337,7 +348,7 @@
position: absolute;
display: flex;
right: 0;
bottom: 70px;
bottom: 60px;
padding-right: 10px;
text-align: right;
width: 100px;
@ -349,7 +360,7 @@
display: flex;
right: 100px;
left: 10px;
bottom: 68px;
bottom: 58px;
@include resolution(2) {
right: 115px;