Added (if available) a scrollbar to the sounds and fixed the menu bar for MSEdge

Signed-off-by: WolverinDEV <git@teaspeak.de>
This commit is contained in:
WolverinDEV 2019-12-22 13:45:44 +01:00
parent a2951a3f50
commit a0c7b3c8d0
No known key found for this signature in database
GPG key ID: 77A6C15085150EEB
2 changed files with 9 additions and 1 deletions

View file

@ -50,6 +50,10 @@
.container-label {
display: inline-block;
align-self: center;
a {
white-space: nowrap;
}
}
}

View file

@ -798,6 +798,10 @@ namespace Modals {
/* initialize sound list */
{
const container_sounds = contianer.find(".container-sounds");
let scrollbar: SimpleBar;
if("SimpleBar" in window)
scrollbar = new SimpleBar(container_sounds[0]);
const generate_sound = (_sound: Sound) => {
let tag_play_pause: JQuery, tag_play: JQuery, tag_pause: JQuery, tag_input_muted: JQuery;
@ -854,7 +858,7 @@ namespace Modals {
//container-sounds
for(const sound_key in Sound)
generate_sound(Sound[sound_key as any] as any).appendTo(container_sounds);
generate_sound(Sound[sound_key as any] as any).appendTo(scrollbar ? scrollbar.getContentElement() : container_sounds);
/* the filter */
const input_filter = contianer.find(".input-sounds-filter");