From e3530efdd1b388a65569e7ef43884aad1db9a926 Mon Sep 17 00:00:00 2001 From: Yann Bizeul Date: Mon, 28 Aug 2023 07:35:50 +0200 Subject: [PATCH] fix: Improve dark theme loading --- internal/handlers/handlers.go | 3 +++ web/ui/src/index.css | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index 5583398..d67f0aa 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -89,6 +89,9 @@ func (api *ApiHandler) ApiHandleFunc(w http.ResponseWriter, r *http.Request) { } else if r.Method == "DELETE" { api.feedItemDeleteHandlerFunc(w, r) } + } else if len(split) == 2 { + w.WriteHeader(200) + return } else { utils.CloseWithCodeAndMessage(w, 400, "Malformed request") } diff --git a/web/ui/src/index.css b/web/ui/src/index.css index e548d84..9be0b2e 100644 --- a/web/ui/src/index.css +++ b/web/ui/src/index.css @@ -1,8 +1,18 @@ @media (prefers-color-scheme: dark) { - html, body { + html, body, #root .ant-layout, #root .ant-layout-footer { background-color: black; + background: black; + } + #root .ant-input, #root .input-field { + background-color: rgb(20,20,20); + + border-left-color: rgb(66, 66, 66); + border-top-color: rgb(66, 66, 66); + border-right-color: rgb(66, 66, 66); + border-bottom-color: rgb(66, 66, 66); } } + body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',