Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Fix dark mode: logo visibility, scrollbars, sidebar border

Abi Rajaeba736348ad7
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index a1322393..e4002e39 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -655,7 +655,7 @@ function App() {
{/* Content panel - shows sidebar, history, or editor */}
{showContentPanel && (
<div
- className={`border-b border-gray-200 bg-white dark:bg-zinc-950 dark:text-white lg:fixed lg:inset-y-0 lg:left-16 lg:z-40 lg:flex lg:w-[calc(28rem-4rem)] lg:flex-col lg:border-b-0 lg:border-r ${
+ className={`border-b border-gray-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 dark:text-white lg:fixed lg:inset-y-0 lg:left-16 lg:z-40 lg:flex lg:w-[calc(28rem-4rem)] lg:flex-col lg:border-b-0 lg:border-r ${
showMobileChatPane ? "block" : "hidden lg:flex"
}`}
>
diff --git a/frontend/src/components/sidebar/IconStrip.tsx b/frontend/src/components/sidebar/IconStrip.tsx
index 4c15725b..8e918b96 100644
--- a/frontend/src/components/sidebar/IconStrip.tsx
+++ b/frontend/src/components/sidebar/IconStrip.tsx
@@ -37,7 +37,7 @@ function IconStrip({
<img
src="/favicon/main.png"
alt="Logo"
- className="w-5 h-5"
+ className="w-5 h-5 dark:invert"
/>
</button>
diff --git a/frontend/src/index.css b/frontend/src/index.css
index ee5da978..6dacc6a6 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -77,6 +77,8 @@
}
.dark {
+ color-scheme: dark;
+
--background: 222.2 0% 0%;
--foreground: 210 40% 98%;