/
proc
/
3430793
/
root
/
snap
/
lxd
/
current
/
share
/
lxd-ui
/
assets
/
File Upload :
llllll
Current File: //proc/3430793/root/snap/lxd/current/share/lxd-ui/assets/ScrollableContainer-ceiHesUW.js
import{r as a,d as x,j as c,t as f,bZ as v,b_ as B}from"./index-dL2n30-Z.js";const j=({dependencies:i,children:r,belowIds:l=["status-bar"],className:d})=>{const e=a.useRef(null),s=()=>{var o;const t=(o=e.current)==null?void 0:o.children[0];if(!t)return;const u=t.getBoundingClientRect().top+1,h=l.reduce((b,m)=>b+v(m),0),p=B(t),n=Math.ceil(u+h+p),g=`height: calc(100dvh - ${n}px); min-height: calc(100dvh - ${n}px)`;t.setAttribute("style",g)};return x.useListener(window,s,"resize",!0),a.useEffect(s,[...i,e]),c.jsx("div",{ref:e,className:f("scrollable-container",d),children:c.jsx("div",{id:"content-details",className:"content-details",children:r})})};export{j as S};
Copyright ©2k19 -
Hexid
|
Tex7ure