mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
don't auto-restart during recordings
This commit is contained in:
parent
fd87c2de1d
commit
cabe68c3e2
7 changed files with 50 additions and 18 deletions
|
@ -15,12 +15,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.4.46",
|
||||
"_release": "1.4.46",
|
||||
"version": "1.4.47",
|
||||
"_release": "1.4.47",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.4.46",
|
||||
"commit": "3dcd07a1386cef6bbb6267851b90f950ca18f5ad"
|
||||
"tag": "1.4.47",
|
||||
"commit": "b57164cb8d8222bd7fc039bed2cfa01132ee2862"
|
||||
},
|
||||
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
||||
"_target": "^1.2.0",
|
||||
|
|
|
@ -26,6 +26,7 @@ _:-ms-input-placeholder, :root .mdl-slider.mdl-slider {
|
|||
align-self: center;
|
||||
z-index: 1;
|
||||
cursor: pointer;
|
||||
margin: 0;
|
||||
/**************************** Tracks ****************************/
|
||||
/**************************** Thumbs ****************************/
|
||||
/**************************** 0-value ****************************/
|
||||
|
@ -321,3 +322,14 @@ _:-ms-input-placeholder, :root .mdl-slider.mdl-slider {
|
|||
padding: 0;
|
||||
transition: left 0.18s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.sliderBubble {
|
||||
position: absolute;
|
||||
top: -3.7em;
|
||||
left: 0;
|
||||
padding: .75em;
|
||||
background: #3367d6;
|
||||
color: #fff;
|
||||
border-radius: 1000px;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
|
|
@ -32,6 +32,17 @@
|
|||
}
|
||||
}
|
||||
|
||||
function updateBubble(range, bubble) {
|
||||
|
||||
var value = range.value;
|
||||
bubble.style.left = (value - 1) + '%';
|
||||
|
||||
if (range.getBubbleText) {
|
||||
value = range.getBubbleText(value);
|
||||
}
|
||||
bubble.innerHTML = value;
|
||||
}
|
||||
|
||||
EmbySliderPrototype.attachedCallback = function () {
|
||||
|
||||
if (this.getAttribute('data-embycheckbox') == 'true') {
|
||||
|
@ -46,19 +57,30 @@
|
|||
var containerElement = this.parentNode;
|
||||
containerElement.classList.add('mdl-slider__container');
|
||||
|
||||
var htmlToInsert = '';
|
||||
|
||||
if (!supportsNativeProgressStyle) {
|
||||
containerElement.insertAdjacentHTML('beforeend', '<div class="mdl-slider__background-flex"><div class="mdl-slider__background-lower"></div><div class="mdl-slider__background-upper"></div></div>');
|
||||
htmlToInsert += '<div class="mdl-slider__background-flex"><div class="mdl-slider__background-lower"></div><div class="mdl-slider__background-upper"></div></div>';
|
||||
}
|
||||
|
||||
htmlToInsert += '<div class="sliderBubble hide"></div>';
|
||||
|
||||
containerElement.insertAdjacentHTML('beforeend', htmlToInsert);
|
||||
|
||||
var backgroundLower = containerElement.querySelector('.mdl-slider__background-lower');
|
||||
var backgroundUpper = containerElement.querySelector('.mdl-slider__background-upper');
|
||||
var sliderBubble = containerElement.querySelector('.sliderBubble');
|
||||
|
||||
this.addEventListener('input', function () {
|
||||
this.addEventListener('input', function (e) {
|
||||
this.dragging = true;
|
||||
updateBubble(this, sliderBubble);
|
||||
sliderBubble.classList.remove('hide');
|
||||
});
|
||||
this.addEventListener('change', function () {
|
||||
this.dragging = false;
|
||||
updateValues(this, backgroundLower, backgroundUpper);
|
||||
updateBubble(this, sliderBubble);
|
||||
sliderBubble.classList.add('hide');
|
||||
});
|
||||
|
||||
if (!supportsNativeProgressStyle) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue