Skip to content

Commit e3530ef

Browse files
committed
fix: Improve dark theme loading
1 parent a45bdcf commit e3530ef

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

internal/handlers/handlers.go

+3
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ func (api *ApiHandler) ApiHandleFunc(w http.ResponseWriter, r *http.Request) {
8989
} else if r.Method == "DELETE" {
9090
api.feedItemDeleteHandlerFunc(w, r)
9191
}
92+
} else if len(split) == 2 {
93+
w.WriteHeader(200)
94+
return
9295
} else {
9396
utils.CloseWithCodeAndMessage(w, 400, "Malformed request")
9497
}

web/ui/src/index.css

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
@media (prefers-color-scheme: dark) {
2-
html, body {
2+
html, body, #root .ant-layout, #root .ant-layout-footer {
33
background-color: black;
4+
background: black;
5+
}
6+
#root .ant-input, #root .input-field {
7+
background-color: rgb(20,20,20);
8+
9+
border-left-color: rgb(66, 66, 66);
10+
border-top-color: rgb(66, 66, 66);
11+
border-right-color: rgb(66, 66, 66);
12+
border-bottom-color: rgb(66, 66, 66);
413
}
514
}
15+
616
body {
717
margin: 0;
818
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',

0 commit comments

Comments
 (0)