mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixed bugs with video player
This commit is contained in:
parent
7d39af1594
commit
611f90b564
2 changed files with 11 additions and 5 deletions
|
@ -126,6 +126,10 @@
|
|||
-webkit-box-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
|
||||
[dir="rtl"] & {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
}
|
||||
|
||||
.osdVolumeSliderContainer {
|
||||
|
@ -142,6 +146,10 @@
|
|||
display: -webkit-flex;
|
||||
align-items: center;
|
||||
-webkit-box-align: center;
|
||||
|
||||
[dir="rtl"] & {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
}
|
||||
|
||||
.volumeButtons {
|
||||
|
|
|
@ -33,10 +33,8 @@ import datetime from '../../scripts/datetime';
|
|||
const rect = range.sliderBubbleTrack.getBoundingClientRect();
|
||||
|
||||
let fraction = (clientX - rect.left) / rect.width;
|
||||
|
||||
if (getIsRTL()) {
|
||||
fraction = (rect.width - (clientX - rect.left)) / rect.width;
|
||||
}
|
||||
if (getIsRTL())
|
||||
fraction = (rect.right - clientX) / rect.width;
|
||||
|
||||
// Snap to step
|
||||
const valueRange = range.max - range.min;
|
||||
|
@ -130,7 +128,7 @@ import datetime from '../../scripts/datetime';
|
|||
if (range.getBubbleText) {
|
||||
value = range.getBubbleText(value);
|
||||
} else {
|
||||
value = datetime.toLocaleString(mapFractionToValue(range, value / 100));
|
||||
value = mapFractionToValue(range, value / 100).toLocaleString();
|
||||
}
|
||||
value = '<h1 class="sliderBubbleText">' + value + '</h1>';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue