diff --git a/apps/hash-frontend/src/pages/shared/entities-visualizer/entities-table.tsx b/apps/hash-frontend/src/pages/shared/entities-visualizer/entities-table.tsx index 2c0d8c27d1e..1f273472cb9 100644 --- a/apps/hash-frontend/src/pages/shared/entities-visualizer/entities-table.tsx +++ b/apps/hash-frontend/src/pages/shared/entities-visualizer/entities-table.tsx @@ -3,7 +3,7 @@ import { GridCellKind } from "@glideapps/glide-data-grid"; import { Box, Stack, useTheme } from "@mui/material"; import * as Sentry from "@sentry/nextjs"; import { useRouter } from "next/router"; -import { useCallback, useEffect, useMemo, useState } from "react"; +import { useCallback, useMemo, useState } from "react"; import { extractBaseUrl, @@ -788,30 +788,6 @@ export const EntitiesTable: FunctionComponent< webNameByWebId, ]); - const [ - { horizontalScrollbarHeight, verticalScrollbarWidth }, - setScrollbarSizes, - ] = useState({ - horizontalScrollbarHeight: 0, - verticalScrollbarWidth: 0, - }); - - useEffect(() => { - const gridEl = document.querySelector(".dvn-scroller"); - - if (!gridEl) { - return; - } - - const scrollbarHeight = gridEl.offsetHeight - gridEl.clientHeight; - const scrollbarWidth = gridEl.offsetWidth - gridEl.clientWidth; - - setScrollbarSizes({ - horizontalScrollbarHeight: scrollbarHeight, - verticalScrollbarWidth: scrollbarWidth, - }); - }, [rows.length]); - const loadMoreRowHeight = 60; return ( @@ -824,7 +800,7 @@ export const EntitiesTable: FunctionComponent< sort={sort} setSort={setSortWithConversion} /> - + setShowSearch(false)} onSelectedRowsChange={(updatedSelectedRows) => @@ -861,10 +844,8 @@ export const EntitiesTable: FunctionComponent< background: palette.common.white, borderTop: `1px solid ${palette.gray[20]}`, height: loadMoreRowHeight, - position: "absolute", - bottom: horizontalScrollbarHeight, p: 1, - width: `calc(100% - ${verticalScrollbarWidth}px)`, + width: "100%", })} >