diff --git a/public/css/style.scss b/public/css/style.scss
index 456ee6c87..2e4b7af23 100644
--- a/public/css/style.scss
+++ b/public/css/style.scss
@@ -388,6 +388,10 @@ a:hover {
right: .25rem;
border: 2px solid var(--bg-color);
}
+ &.dotHidden::after{
+ background: transparent;
+ border-color: transparent;
+ }
}
&:focus{
background: var(--sub-color);
@@ -788,7 +792,7 @@ key {
#restartTestButton, #showWordHistoryButton, #copyResultToClipboardButton, #restartTestButtonWithSameWordset {
position: relative;
border-radius: var(--roundness);
- padding: 1rem 2rem;
+ padding: 1rem 2 rem;
width: min-content;
width: -moz-min-content;
color: var(--sub-color);
diff --git a/public/index.html b/public/index.html
index b9bcca077..bfed880e9 100644
--- a/public/index.html
+++ b/public/index.html
@@ -394,6 +394,14 @@
hide
+
+
discord dot
+
Shows the notification dot on the Discord icon.
+
+
diff --git a/public/js/settings.js b/public/js/settings.js
index 9aeab1cd3..29502ba63 100644
--- a/public/js/settings.js
+++ b/public/js/settings.js
@@ -25,7 +25,7 @@ function updateSettingsPage(){
setSettingsButton('blindMode', config.blindMode);
setSettingsButton('quickEnd', config.quickEnd);
setSettingsButton('flipTestColors', config.flipTestColors);
-
+ setSettingsButton('discordDot', config.showDiscordDot);
setActiveThemeButton();
setActiveLanguageButton();
@@ -172,6 +172,16 @@ $(".pageSettings .section.keyTips .buttons .button.off").click(e => {
}
})
+//keytips
+$(".pageSettings .section.discordDot .buttons .button.on").click(e => {
+ setDiscordDot(true);
+ setSettingsButton('discordDot', config.showDiscordDot);
+})
+$(".pageSettings .section.discordDot .buttons .button.off").click(e => {
+ setDiscordDot(false);
+ setSettingsButton('discordDot', config.showDiscordDot);
+})
+
//themes
// $(document).on("mouseover",".pageSettings .section.themes .theme", (e) => {
// let theme = $(e.currentTarget).attr('theme');