MCPcopy Create free account
hub / github.com/TanStack/query / getPanelDynamicStyles

Function getPanelDynamicStyles

packages/query-devtools/src/Devtools.tsx:293–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

291 })
292
293 const getPanelDynamicStyles = () => {
294 const { colors } = tokens
295 const t = (light: string, dark: string) =>
296 theme() === 'dark' ? dark : light
297 if (panelWidth() < secondBreakpoint) {
298 return css`
299 flex-direction: column;
300 background-color: ${t(colors.gray[300], colors.gray[600])};
301 `
302 }
303 return css`
304 flex-direction: row;
305 background-color: ${t(colors.gray[200], colors.darkGray[900])};
306 `
307 }
308
309 createEffect(() => {
310 const win = pip().pipWindow

Callers 3

PiPPanelFunction · 0.85
ParentPanelFunction · 0.85
DraggablePanelFunction · 0.85

Calls 1

tFunction · 0.70

Tested by

no test coverage detected