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:
parent
a2951a3f50
commit
a0c7b3c8d0
2 changed files with 9 additions and 1 deletions
|
@ -50,6 +50,10 @@
|
||||||
.container-label {
|
.container-label {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
|
|
||||||
|
a {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -798,6 +798,10 @@ namespace Modals {
|
||||||
/* initialize sound list */
|
/* initialize sound list */
|
||||||
{
|
{
|
||||||
const container_sounds = contianer.find(".container-sounds");
|
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) => {
|
const generate_sound = (_sound: Sound) => {
|
||||||
let tag_play_pause: JQuery, tag_play: JQuery, tag_pause: JQuery, tag_input_muted: JQuery;
|
let tag_play_pause: JQuery, tag_play: JQuery, tag_pause: JQuery, tag_input_muted: JQuery;
|
||||||
|
@ -854,7 +858,7 @@ namespace Modals {
|
||||||
|
|
||||||
//container-sounds
|
//container-sounds
|
||||||
for(const sound_key in Sound)
|
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 */
|
/* the filter */
|
||||||
const input_filter = contianer.find(".input-sounds-filter");
|
const input_filter = contianer.find(".input-sounds-filter");
|
||||||
|
|
Loading…
Add table
Reference in a new issue