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

Function setupPortal

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

Source from the content-addressed store, hash-verified

852 // Adds the styles and sets the font size variable on portal menu elements,
853 // since they are outside the main panel container
854 const setupPortal = (el: HTMLDivElement) => {
855 attachStyles(el)
856 const computedStyle = getComputedStyle(containerRef)
857 const variable = computedStyle.getPropertyValue('--tsqd-font-size')
858 el.style.setProperty('--tsqd-font-size', variable)
859 }
860 return (
861 <>
862 <div

Callers 1

ContentViewFunction · 0.85

Calls 1

attachStylesFunction · 0.90

Tested by

no test coverage detected