MCPcopy
hub / github.com/TanStack/query / getPanelDynamicStyles

Function getPanelDynamicStyles

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

Source from the content-addressed store, hash-verified

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…