aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-08-19 22:32:28 -0400
committerAjay Ramachandran <[email protected]>2021-08-19 22:32:28 -0400
commit36aec560ca06774322d6b1b7219dac28da3cfc11 (patch)
treee3913d9e589920b1a8d6366d47a6f70425c0c857 /src/components
parente8a106d36bc95e5baf794b78095d0f87c69484ee (diff)
downloadSponsorBlock-36aec560ca06774322d6b1b7219dac28da3cfc11.tar.gz
SponsorBlock-36aec560ca06774322d6b1b7219dac28da3cfc11.zip
Add options for smaller and faded notice
Diffstat (limited to 'src/components')
-rw-r--r--src/components/CategorySkipOptionsComponent.tsx2
-rw-r--r--src/components/SkipNoticeComponent.tsx5
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}