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

Function setComputedVariables

packages/query-devtools/src/Devtools.tsx:999–1003  ·  view source on GitHub ↗
(el: HTMLDivElement)

Source from the content-addressed store, hash-verified

997 // Sets the Font Size variable on portal menu elements since they will be outside
998 // the main panel container
999 const setComputedVariables = (el: HTMLDivElement) => {
1000 const computedStyle = getComputedStyle(containerRef)
1001 const variable = computedStyle.getPropertyValue('--tsqd-font-size')
1002 el.style.setProperty('--tsqd-font-size', variable)
1003 }
1004 return (
1005 <>
1006 <div

Callers 1

ContentViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected