silverwolf-x's picture
download
raw
488 Bytes
import { useLayoutEffect } from 'react'
import { useDevOverlayContext } from '../../dev-overlay.browser'
export function ScaleUpdater() {
const { shadowRoot, state } = useDevOverlayContext()
useLayoutEffect(() => {
// Update the CSS custom property for scale
if (shadowRoot?.host) {
;(shadowRoot.host as HTMLElement).style.setProperty(
'--nextjs-dev-tools-scale',
String(state.scale || 1)
)
}
}, [shadowRoot, state.scale])
return null
}

Xet Storage Details

Size:
488 Bytes
·
Xet hash:
a41f6400a4bbc5b6298a88dcf2ba4461b56429833a18280745f6292255454395

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.