mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 05:09:51 +08:00
fix: paint settings select dark-mode dropdown popover background
The Provider <select> in Settings used `bg-transparent`, leaving the native dropdown popover unpainted. On Edge/Chromium with the `.dark` theme the popover renders against a white surface despite `color-scheme: dark` being set, leaving option text near-invisible (reported in #433 with screenshots). Switch the shared `selectClass` to `bg-[var(--background)]` so the closed select keeps its current visual (--background matches the form panel in every theme) and the opened popover inherits the themed surface — `#1a1918` in dark, `#faf9f6` in light, equivalent in theme-snow / theme-glass. Closes #433.
This commit is contained in:
@@ -205,7 +205,7 @@ const inputClass =
|
||||
"w-full rounded-lg border border-[var(--border)] bg-transparent px-3 py-2 text-[14px] text-[var(--foreground)] outline-none transition-colors focus:border-[var(--ring)] placeholder:text-[var(--muted-foreground)]/40";
|
||||
|
||||
const selectClass =
|
||||
"w-full appearance-none rounded-lg border border-[var(--border)] bg-transparent px-3 py-2 text-[14px] text-[var(--foreground)] outline-none transition-colors focus:border-[var(--ring)] cursor-pointer";
|
||||
"w-full appearance-none rounded-lg border border-[var(--border)] bg-[var(--background)] px-3 py-2 text-[14px] text-[var(--foreground)] outline-none transition-colors focus:border-[var(--ring)] cursor-pointer";
|
||||
|
||||
function stringifyExtraHeaders(value: CatalogProfile["extra_headers"]): string {
|
||||
if (!value) return "";
|
||||
|
||||
Reference in New Issue
Block a user