File tree Expand file tree Collapse file tree 4 files changed +482
-472
lines changed Expand file tree Collapse file tree 4 files changed +482
-472
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { TooltipProvider } from "@radix-ui/react-tooltip"
1010import { QueryClientProvider } from "@tanstack/react-query"
1111
1212import { queryClient } from "@/lib/clients"
13+ import { portalWrapper } from "@/lib/portal-root"
1314
1415import { DatabrowserInstance } from "./components/databrowser-instance"
1516import { DatabrowserTabs } from "./components/databrowser-tabs"
@@ -90,15 +91,22 @@ const RedisBrowserRoot = ({
9091} ) => {
9192 const theme = useDarkMode ( )
9293
94+ useEffect ( ( ) => {
95+ portalWrapper . classList . add ( "text-zinc-700" )
96+ portalWrapper . classList . toggle ( "dark" , theme === "dark" )
97+ } , [ theme ] )
98+
9399 return (
94100 /* ups-db is the custom class used to prefix every style in the css bundle */
95101 < div
96102 className = { `ups-db ${ theme === "dark" ? "dark" : "" } ` }
97103 style = { { height : "100%" , display : "flex" , flexDirection : "column" } }
98104 ref = { rootRef }
99105 >
100- { ! hideTabs && < DatabrowserTabs /> }
101- < DatabrowserInstances />
106+ < div className = "text-zinc-700" >
107+ { ! hideTabs && < DatabrowserTabs /> }
108+ < DatabrowserInstances />
109+ </ div >
102110 </ div >
103111 )
104112}
You can’t perform that action at this time.
0 commit comments