mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-15 17:46:55 +00:00
4.22.4
* Fixed: Duplicate more CSS that Twitch is removing in favor of styled components. * Fixed: Do not display theater metadata when viewing a video.
This commit is contained in:
parent
c286e6cf93
commit
ff4bb24a9a
6 changed files with 42 additions and 5 deletions
|
@ -406,14 +406,14 @@ export default class MenuButton extends SiteModule {
|
|||
|
||||
progress_bar = (<div class="ffz-toast--progress tw-absolute tw-overflow-hidden tw-z-below">
|
||||
<div
|
||||
class="tw-border-radius-rounded tw-progress-bar tw-progress-bar--countdown tw-progress-bar--default tw-progress-bar--mask"
|
||||
class="tw-border-radius-rounded ffz-progress-bar ffz-progress-bar--countdown ffz-progress-bar--default ffz-progress-bar--mask"
|
||||
role="progressbar"
|
||||
aria-valuenow={percentage}
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
>
|
||||
<div
|
||||
class={`tw-block tw-border-bottom-left-radius-rounded tw-border-top-left-radius-rounded tw-progress-bar__fill`}
|
||||
class={`tw-block tw-border-bottom-left-radius-rounded tw-border-top-left-radius-rounded ffz-progress-bar__fill`}
|
||||
data-a-target="tw-progress-bar-animation"
|
||||
style={{
|
||||
width: `${percentage}%`,
|
||||
|
|
|
@ -108,6 +108,12 @@ export default class Player extends PlayerBase {
|
|||
|
||||
this.settings.add('player.theatre.metadata', {
|
||||
default: false,
|
||||
requires: ['context.route.name'],
|
||||
process(ctx, val) {
|
||||
if ( ctx.get('context.route.name') === 'video' )
|
||||
return false;
|
||||
return val
|
||||
},
|
||||
ui: {
|
||||
path: 'Player > General >> Theatre Mode',
|
||||
title: 'Show metadata when mousing over the player.',
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
}
|
||||
|
||||
.ffz-toast {
|
||||
&.ffz-toast--paused .tw-progress-bar--countdown .tw-progress-bar__fill {
|
||||
&.ffz-toast--paused .ffz-progress-bar--countdown .ffz-progress-bar__fill {
|
||||
animation: none !important;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue