diff --git a/manifest/manifest.json b/manifest/manifest.json index a72a4819..8830c74a 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_fullName__", "short_name": "__MSG_Name__", - "version": "1.2.25", + "version": "1.2.26", "default_locale": "en", "description": "__MSG_Description__", "content_scripts": [{ diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 63d35ae4..fa721e16 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -515,7 +515,7 @@ "message": "Manual Skip" }, "showOverlay": { - "message": "Show Overlay On Player" + "message": "Show In Seek Bar" }, "enableTestingServer": { "message": "Enable Beta Testing Server" @@ -528,5 +528,8 @@ }, "bracketNow": { "message": "(Now)" + }, + "moreCategories": { + "message": "More Categories" } } diff --git a/public/content.css b/public/content.css index 5d65f788..24d8b9ac 100644 --- a/public/content.css +++ b/public/content.css @@ -338,6 +338,13 @@ input::-webkit-inner-spin-button { margin: 0; } +.sponsorTimeMessagesRow { + max-height: 300px; + display: flex; + + overflow: auto; +} + .sponsorTimeEdit { font-size: 14px; diff --git a/src/components/NoticeComponent.tsx b/src/components/NoticeComponent.tsx index d554f85d..b7ff8adf 100644 --- a/src/components/NoticeComponent.tsx +++ b/src/components/NoticeComponent.tsx @@ -11,7 +11,7 @@ export interface NoticeProps { fadeIn?: boolean, // Callback for when this is closed - closeListener?: () => void, + closeListener: () => void, zIndex?: number } @@ -195,16 +195,10 @@ class NoticeComponent extends React.Component { * @param silent If true, the close listener will not be called */ close(silent?: boolean) { - //TODO: Change to a listener in the renderer (not component) - let notice = document.getElementById("sponsorSkipNotice" + this.idSuffix); - if (notice != null) { - notice.remove(); - } - //remove setInterval if (this.countdownInterval !== null) clearInterval(this.countdownInterval); - if (this.props.closeListener && !silent) this.props.closeListener(); + if (!silent) this.props.closeListener(); } changeNoticeTitle(title) { diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index 07572de6..08d817e6 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -14,6 +14,8 @@ export interface SkipNoticeProps { autoSkip: boolean; // Contains functions and variables from the content script needed by the skip notice contentContainer: ContentContainer; + + closeListener: () => void } export interface SkipNoticeState { @@ -112,7 +114,8 @@ class SkipNoticeComponent extends React.Component + ref={this.noticeRef} + closeListener={this.props.closeListener}> {(Config.config.audioNotificationOnSkip) &&