diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/CategorySkipOptionsComponent.tsx | 2 | ||||
-rw-r--r-- | src/components/SkipNoticeComponent.tsx | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/components/CategorySkipOptionsComponent.tsx b/src/components/CategorySkipOptionsComponent.tsx index be174ddd..1095f5fe 100644 --- a/src/components/CategorySkipOptionsComponent.tsx +++ b/src/components/CategorySkipOptionsComponent.tsx @@ -61,7 +61,7 @@ class CategorySkipOptionsComponent extends React.Component<CategorySkipOptionsPr <td id={this.props.category + "SkipOption"} className="skipOption"> <select - className="categoryOptionsSelector" + className="optionsSelector" defaultValue={defaultOption} onChange={this.skipOptionSelected.bind(this)}> {this.getCategorySkipOptions()} diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index b3231404..0af1efad 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import * as CompileConfig from "../../config.json"; import Config from "../config" -import { Category, ContentContainer, CategoryActionType, SponsorHideType, SponsorTime } from "../types"; +import { Category, ContentContainer, CategoryActionType, SponsorHideType, SponsorTime, NoticeVisbilityMode } from "../types"; import NoticeComponent from "./NoticeComponent"; import NoticeTextSelectionComponent from "./NoticeTextSectionComponent"; @@ -156,7 +156,8 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta showInSecondSlot={this.showInSecondSlot} idSuffix={this.idSuffix} fadeIn={true} - startFaded={false} + startFaded={Config.config.noticeVisibilityMode >= NoticeVisbilityMode.FadedForAll + || (Config.config.noticeVisibilityMode >= NoticeVisbilityMode.FadedForAutoSkip && this.autoSkip)} timed={true} maxCountdownTime={this.state.maxCountdownTime} videoSpeed={() => this.contentContainer().v?.playbackRate} |