1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Small fix for video player as the progress bar shouldn't be rtl

This commit is contained in:
Hadi Charara 2022-07-03 09:10:02 -04:00
parent 974417ce3d
commit 4530e44e62
5 changed files with 32 additions and 43 deletions

View file

@ -11,7 +11,7 @@
/* General select styles: change as needed */
font-family: inherit;
font-weight: inherit;
padding-block: 0.5em 0.5em;
padding-block: 0.5em;
padding-inline: 0.5em 1.9em;
/* Prevent padding from causing width overflow */
@ -35,9 +35,8 @@
}
.selectContainer-inline > .emby-select {
padding: 0.3em 1.9em 0.3em 0.5em;
padding-block: 0.3em;
padding-inline: 0.5em 0.9em;
padding-inline: 0.5em 1.9em;
font-size: inherit;
}

View file

@ -419,11 +419,7 @@ import { getIsRTL } from '../../scripts/globalize';
function setRange(elem, startPercent, endPercent) {
const style = elem.style;
if (getIsRTL()) {
style.right = Math.max(startPercent, 0) + '%';
} else {
style.left = Math.max(startPercent, 0) + '%';
}
style.insetInlineStart = Math.max(startPercent, 0) + '%';
const widthPercent = endPercent - startPercent;
style.width = Math.max(Math.min(widthPercent, 100), 0) + '%';