From 3369b54b833a6953c5fa8f31e11d03df3394f3ca Mon Sep 17 00:00:00 2001 From: igorrCarvalho Date: Mon, 3 Jun 2024 20:03:40 -0300 Subject: [PATCH] Refactor: remove page size directly in css file --- src/frontend/src/components/tableComponent/index.tsx | 1 - src/frontend/src/style/classes.css | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/components/tableComponent/index.tsx b/src/frontend/src/components/tableComponent/index.tsx index 93239723b..1a9c7a44d 100644 --- a/src/frontend/src/components/tableComponent/index.tsx +++ b/src/frontend/src/components/tableComponent/index.tsx @@ -35,7 +35,6 @@ const TableComponent = forwardRef< }, ref, ) => { - document.querySelector(".ag-paging-page-size")!.style.display = "none"; const gridRef = useRef(null); const realRef = ref?.current ? ref : gridRef; const dark = useDarkStore((state) => state.dark); diff --git a/src/frontend/src/style/classes.css b/src/frontend/src/style/classes.css index 39b080390..29140e7fa 100644 --- a/src/frontend/src/style/classes.css +++ b/src/frontend/src/style/classes.css @@ -15,6 +15,10 @@ pre { font-family: inherit; } +.ag-paging-page-size { + display: none; +} + .react-flow__pane { cursor: default; }