Small fix for video player as the progress bar shouldn't be rtl
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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) + '%';
|
||||
|
||||
Reference in New Issue
Block a user