mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-24 11:38:30 +00:00
4.12.3
* Changed: Prevent the video quality from dropping when using Picture-in-Picture. (This is handled via an override to the Page Visibility API, preventing the player from detecting the page is hidden when PIP is active. This override *only* functions when Picture-in-Picture is in use.) * Fixed: Recalculate the position of the navigation bar underline when showing/hiding the Discover link. * Fixed: Don't load our color normalization CSS if the user isn't making use of a custom theme.
This commit is contained in:
parent
077a0685ad
commit
1c0f7edab5
5 changed files with 60 additions and 8 deletions
|
@ -183,7 +183,10 @@ export default class CSSTweaks extends Module {
|
|||
title: 'Show Discover link.',
|
||||
component: 'setting-check-box'
|
||||
},
|
||||
changed: val => this.toggleHide('top-discover', !val)
|
||||
changed: val => {
|
||||
this.toggleHide('top-discover', !val);
|
||||
this.updateTopNav();
|
||||
}
|
||||
});
|
||||
|
||||
this.settings.add('layout.prime-offers', {
|
||||
|
@ -297,6 +300,11 @@ export default class CSSTweaks extends Module {
|
|||
this.toggleHide('whispers', !this.settings.get('whispers.show'));
|
||||
|
||||
this.updateFont();
|
||||
this.updateTopNav();
|
||||
}
|
||||
|
||||
updateTopNav() {
|
||||
requestAnimationFrame(() => this.emit('site.layout:update-nav'));
|
||||
}
|
||||
|
||||
updateFont() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue