From 7de907fa2312c3eff64ba80afa23644b203c6cee Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 4 Jun 2020 21:46:56 -0400 Subject: [PATCH] Added help button to submission notice --- manifest/manifest.json | 1 + public/_locales/en/messages.json | 3 ++ public/content.css | 18 +++++++ public/icons/help.svg | 58 +++++++++++++++++++++ src/components/SponsorTimeEditComponent.tsx | 23 +++++--- 5 files changed, 96 insertions(+), 7 deletions(-) create mode 100644 public/icons/help.svg diff --git a/manifest/manifest.json b/manifest/manifest.json index 59dc3272..7c4e766f 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -32,6 +32,7 @@ "icons/downvote.png", "icons/thumbs_down.svg", "icons/thumbs_up.svg", + "icons/help.svg", "icons/report.png", "icons/close.png", "icons/beep.ogg", diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index f3690e6c..cecec1ec 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -610,5 +610,8 @@ }, "multipleSegments": { "message": "Multiple Segments" + }, + "categoryGuidelines": { + "message": "Category Guidelines" } } diff --git a/public/content.css b/public/content.css index 66838a9f..95009d26 100644 --- a/public/content.css +++ b/public/content.css @@ -394,4 +394,22 @@ input::-webkit-inner-spin-button { color: white; border-width: 3px; padding: 3px; +} + +.helpButton { + +} + +.helpButton { + height: 25px; + cursor: pointer; + padding: 5px; + + margin: auto; + top: 0; + bottom: 0; + position: absolute; +} +.helpButton:hover { + filter: brightness(80%); } \ No newline at end of file diff --git a/public/icons/help.svg b/public/icons/help.svg new file mode 100644 index 00000000..571216ba --- /dev/null +++ b/public/icons/help.svg @@ -0,0 +1,58 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx index 73e9b422..52c1da0c 100644 --- a/src/components/SponsorTimeEditComponent.tsx +++ b/src/components/SponsorTimeEditComponent.tsx @@ -182,14 +182,23 @@ class SponsorTimeEditComponent extends React.Component + - + chrome.runtime.sendMessage({"message": "openConfig"})}> + + +