aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-09-17 12:29:42 -0400
committerAjay <[email protected]>2023-09-17 12:29:42 -0400
commit6c2ee76198d8aaa429c0f1b2cfb9644c085c059c (patch)
treefeb5aa0c5dfa7b8e5bde4c7e01a63fbb0fa62f40
parent42f59898f3696eac1181cc31f06bb2dd10775763 (diff)
downloadSponsorBlock-6c2ee76198d8aaa429c0f1b2cfb9644c085c059c.tar.gz
SponsorBlock-6c2ee76198d8aaa429c0f1b2cfb9644c085c059c.zip
Add start button to submission menu
m---------public/_locales0
-rw-r--r--public/content.css9
-rw-r--r--public/shared.css2
-rw-r--r--src/components/SponsorTimeEditComponent.tsx6
4 files changed, 9 insertions, 8 deletions
diff --git a/public/_locales b/public/_locales
-Subproject 0a46f4ec38482f511b46da52c26081ee4478518
+Subproject 57b98f6d79acac1dae7232bdb48bf988528a16a
diff --git a/public/content.css b/public/content.css
index 48f11bd9..2681afa9 100644
--- a/public/content.css
+++ b/public/content.css
@@ -249,11 +249,6 @@ div:hover > .sponsorBlockChapterBar {
border-collapse: unset;
}
-.sponsorSkipNoticeParent {
- min-width: 350px;
- max-width: 50%;
-}
-
.sponsorSkipNotice {
width: 100%;
}
@@ -576,8 +571,8 @@ div:hover > .sponsorBlockChapterBar {
.sponsorTimeEditButton {
text-decoration: underline;
- margin-left: 20px;
- margin-right: 20px;
+ margin-left: 13px;
+ margin-right: 13px;
font-size: 13px;
diff --git a/public/shared.css b/public/shared.css
index 5cb53f88..7435653f 100644
--- a/public/shared.css
+++ b/public/shared.css
@@ -14,7 +14,7 @@
}
.sponsorSkipNoticeParent {
- min-width: 350px;
+ min-width: 375px;
max-width: 50%;
}
diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx
index 474a2fd3..eb0109e3 100644
--- a/src/components/SponsorTimeEditComponent.tsx
+++ b/src/components/SponsorTimeEditComponent.tsx
@@ -128,6 +128,12 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
style={timeDisplayStyle}
className="sponsorTimeDisplay">
+ <span id={"startButton" + this.idSuffix}
+ className="sponsorNowButton"
+ onClick={() => this.setTimeTo(0, 0)}>
+ {chrome.i18n.getMessage("bracketStart")}
+ </span>
+
<span id={"nowButton0" + this.idSuffix}
className="sponsorNowButton"
onClick={() => this.setTimeToNow(0)}>