temporary signout fix, small aesthetics
This commit is contained in:
@@ -32,7 +32,6 @@ class Home extends Shadow {
|
||||
.border("1px solid var(--accent)")
|
||||
.attr({value: "dark"})
|
||||
.onChange((e) => {
|
||||
console.log("onchange")
|
||||
document.documentElement.className = e.target.value
|
||||
localStorage.setItem("theme", e.target.value);
|
||||
const event = new CustomEvent('themechange', {
|
||||
|
||||
@@ -40,6 +40,10 @@ class Sidebar extends Shadow {
|
||||
.height(100, vh)
|
||||
.borderRight("1px solid var(--accent)")
|
||||
.zIndex(3)
|
||||
.onEvent("themechange", () => {
|
||||
console.log("change")
|
||||
this.rerender()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user