Skip to content

Commit

Permalink
fix: style conflict in dark mode
Browse files Browse the repository at this point in the history
fix #21
  • Loading branch information
wibus-wee committed Jul 5, 2023
1 parent d3fe5ec commit 772f93b
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev-server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { execSync } from "child_process";
import { watch } from "fs";

const watcher = ["addon.js", "main.js", "style.css"]
const watcher = ["addon.js", "style.scss"]

watch("./", { recursive: true }, (eventType, filename) => {
if (watcher.includes(filename) || filename.includes("src")) {
4 changes: 2 additions & 2 deletions style.scss
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ body {
background-color: var(--tg-panel-background) !important;
}

:root {
body {
--tg-panel-background: rgb(255, 255, 255);
--tg-chatbox-background: rgb(245 245 245);
}
@@ -560,7 +560,7 @@ div[message-actions] {

/* ===== Dark mode ===== */
html[theme=dark] {
:root {
body {
--tg-panel-background: rgb(34, 34, 34);
--tg-border-color: rgb(68, 68, 68);
--tg-chatbox-background: rgb(47 47 47);

0 comments on commit 772f93b

Please sign in to comment.