Dim Stream settings' overlay when not playing

This commit is contained in:
redphx 2024-07-01 17:42:42 +07:00
parent c1502b5552
commit d83261d816
2 changed files with 7 additions and 2 deletions

View File

@ -9,12 +9,16 @@
.bx-stream-settings-overlay { .bx-stream-settings-overlay {
position: fixed; position: fixed;
background: transparent; background: #0b0b0be3;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
z-index: var(--bx-stream-settings-overlay-z-index); z-index: var(--bx-stream-settings-overlay-z-index);
&[data-is-playing="true"] {
background: transparent;
}
} }
.bx-stream-settings-tabs { .bx-stream-settings-tabs {

View File

@ -251,8 +251,9 @@ export class StreamSettings {
} }
this.$overlay!.classList.remove('bx-gone'); this.$overlay!.classList.remove('bx-gone');
$container.classList.remove('bx-gone'); this.$overlay!.dataset.isPlaying = STATES.isPlaying.toString();
$container.classList.remove('bx-gone');
document.body.classList.add('bx-no-scroll'); document.body.classList.add('bx-no-scroll');
} }