Set chapter mark icon via CSS instead of class.

Allows easier customisation of what icon should be displayed.
This commit is contained in:
Viperinius 2022-07-03 16:59:01 +02:00
parent 49f1f1fae3
commit c0b092e208
2 changed files with 6 additions and 1 deletions

View file

@ -178,7 +178,7 @@ import '../emby-input/emby-input';
range.chapterFractions = range.getChapterFractions();
}
const htmlToInsert = '<span class="material-icons label sliderChapterMark" aria-hidden="true"></span>';
const htmlToInsert = '<span class="material-icons sliderChapterMark" aria-hidden="true"></span>';
range.chapterFractions.forEach(() => {
range.chapterMarkContainerElement.insertAdjacentHTML('beforeend', htmlToInsert);