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

Function setComputedVariables

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

Source from the content-addressed store, hash-verified

801 // Sets the Font Size variable on portal menu elements since they will be outside
802 // the main panel container
803 const setComputedVariables = (el: HTMLDivElement) => {
804 const computedStyle = getComputedStyle(containerRef)
805 const variable = computedStyle.getPropertyValue('--tsqd-font-size')
806 el.style.setProperty('--tsqd-font-size', variable)
807 }
808 return (
809 <>
810 <div

Callers 1

ContentViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected