diff --git a/Web_Backgrounds/bw-theme.css b/Web_Backgrounds/bw-theme.css index 8922793..1cb10da 100644 --- a/Web_Backgrounds/bw-theme.css +++ b/Web_Backgrounds/bw-theme.css @@ -682,10 +682,10 @@ .dark.theme-bw .to-\[#5A8FC4\], .dark.theme-bw .dark\:to-\[\#5A8FC4\] { --tw-gradient-from: hsl(0,0%,50%) !important; } /* ----- Dark mode: SVG stroke/fill (app-shell, etc) ----- */ -.dark.theme-bw [stroke\="#CC0000"] { stroke: hsl(0,0%,50%) !important; } -.dark.theme-bw [stroke\="#0033CC"] { stroke: hsl(0,0%,50%) !important; } -.dark.theme-bw [fill\="#2D3020"] { fill: hsl(0,0%,20%) !important; } -.dark.theme-bw [fill\="#8A9078"] { fill: hsl(0,0%,55%) !important; } +.dark.theme-bw [stroke="#CC0000"] { stroke: hsl(0,0%,50%) !important; } +.dark.theme-bw [stroke="#0033CC"] { stroke: hsl(0,0%,50%) !important; } +.dark.theme-bw [fill="#2D3020"] { fill: hsl(0,0%,20%) !important; } +.dark.theme-bw [fill="#8A9078"] { fill: hsl(0,0%,55%) !important; } /* ----- Dark mode: Hover states ----- */ .dark.theme-bw .hover\:bg-sky-400\/20:hover { background-color: hsla(0,0%,50%,0.2) !important; } diff --git a/src/lib/db.ts b/src/lib/db.ts index ad7ffdc..aae5c8e 100644 --- a/src/lib/db.ts +++ b/src/lib/db.ts @@ -24,6 +24,12 @@ export async function query(text: string, params?: unknown[], userId?: string) { } const result = await client.query(text, params) return result + } catch (error) { + const msg = error instanceof Error ? error.message : String(error) + console.error(`[DB] query failed — ${msg}`) + console.error(`[DB] SQL: ${text}`) + if (params && params.length > 0) console.error(`[DB] Params:`, JSON.stringify(params)) + throw error } finally { client.release() }