/
snap
/
lxd
/
current
/
share
/
lxd-ui
/
assets
/
File Upload :
llllll
Current File: //snap/lxd/current/share/lxd-ui/assets/ScrollableTable-CQDmfMtz.js
import{d as u,r as b,j as m,bZ as x,b_ as B}from"./index-dL2n30-Z.js";const y=({dependencies:n,children:c,tableId:a,belowIds:l=[]})=>{const e=()=>{const t=document.getElementById(a);if(!t||t.children.length!==2)return;const s=t.children[1],r=s.getBoundingClientRect().top+1,i=l.reduce((h,p)=>h+x(p),0),d=B(t),o=Math.ceil(r+i+d),g=`height: calc(100dvh - ${o}px); min-height: calc(100dvh - ${o}px)`;s.setAttribute("style",g)};return u.useListener(window,e,"resize",!0),b.useEffect(e,[...n]),m.jsx("div",{className:"scrollable-table",children:c})};export{y as S};
Copyright ©2k19 -
Hexid
|
Tex7ure