1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-24 19:48:30 +00:00
* Added: Setting to automatically open chat when navigating to an offline channel.
* Added: Support for multi-month gift sub messages.
* Fixed: The FFZ Control Center, when maximized, disappearing beneath chat on channel pages. (Closes #833)
* Fixed: Metadata appearing in theater mode when hovering over the player.
* Fixed: Automatic theater mode enabling theater mode when navigating back to a channel's landing page.
This commit is contained in:
SirStendec 2020-07-02 14:54:46 -04:00
parent 339b6fdfbb
commit b11e4edf2b
10 changed files with 156 additions and 29 deletions

View file

@ -75,11 +75,20 @@ export default class CSSTweaks extends Module {
});
this.settings.add('layout.use-chat-fix', {
requires: ['layout.swap-sidebars', 'layout.use-portrait', 'chat.use-width'],
requires: ['context.force_chat_fix', 'layout.swap-sidebars', 'layout.use-portrait', 'chat.use-width'],
process(ctx) {
return ctx.get('layout.swap-sidebars') || ctx.get('layout.use-portrait') || ctx.get('chat.use-width')
return ctx.get('context.force_chat_fix') || ctx.get('layout.swap-sidebars') || ctx.get('layout.use-portrait') || ctx.get('chat.use-width')
},
changed: val => {
if ( val )
this.toggle('chat-no-animate', true);
else if ( ! val && ! this._no_anim_timer )
this._no_anim_timer = requestAnimationFrame(() => {
this._no_anim_timer = null;
if ( ! this.settings.get('layout.use-chat-fix') )
this.toggle('chat-no-animate', false);
});
this.toggle('chat-fix', val);
this.emit('site.player:fix-player');
}