mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
9a4a0e78a9
commit
5d6cee1223
4 changed files with 33 additions and 11 deletions
|
@ -20,14 +20,29 @@
|
|||
cursor: pointer;
|
||||
outline: none !important;
|
||||
width: 100%;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
[is="emby-select"] option {
|
||||
color: initial;
|
||||
}
|
||||
[is="emby-select"] option {
|
||||
color: initial;
|
||||
}
|
||||
|
||||
.selectContainer {
|
||||
margin-bottom: 2em;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.selectArrowContainer {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: .25em;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.selectArrow {
|
||||
margin-top: .35em;
|
||||
}
|
||||
|
||||
.selectLabel {
|
||||
|
|
|
@ -153,6 +153,17 @@
|
|||
var div = document.createElement('div');
|
||||
div.classList.add('emby-select-selectionbar');
|
||||
this.parentNode.insertBefore(div, this.nextSibling);
|
||||
|
||||
var arrowContainer = document.createElement('div');
|
||||
arrowContainer.classList.add('selectArrowContainer');
|
||||
arrowContainer.innerHTML = '<div style="visibility:hidden;">0</div>';
|
||||
this.parentNode.appendChild(arrowContainer);
|
||||
|
||||
var arrow = document.createElement('i');
|
||||
arrow.classList.add('md-icon');
|
||||
arrow.classList.add('selectArrow');
|
||||
arrow.innerHTML = '';
|
||||
arrowContainer.appendChild(arrow);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue