Files
Julianum/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js
2024-06-11 23:18:25 +02:00

2 lines
288 B
JavaScript

function c(){let o;return{before({doc:e}){var l;let n=e.documentElement;o=((l=e.defaultView)!=null?l:window).innerWidth-n.clientWidth},after({doc:e,d:n}){let t=e.documentElement,l=t.clientWidth-t.offsetWidth,r=o-l;n.style(t,"paddingRight",`${r}px`)}}}export{c as adjustScrollbarPadding};