diff --git a/src/frontend/src/assets/css/index.css b/src/frontend/src/assets/css/index.css index bfb1cfd1..871c7f21 100644 --- a/src/frontend/src/assets/css/index.css +++ b/src/frontend/src/assets/css/index.css @@ -76,6 +76,16 @@ body { } } +.no-spinner::-webkit-inner-spin-button, +.no-spinner::-webkit-outer-spin-button { + -webkit-appearance: none; /* Chrome, Safari, Edge, Opera */ + margin: 0; +} + +.no-spinner { + -moz-appearance: textfield; /* Firefox */ +} + #pdf-page-wrapper > div.react-pdf__Page > div.react-pdf__Page__textContent.textLayer { diff --git a/src/frontend/src/components/LandingPage/UserAndRoles/index.tsx b/src/frontend/src/components/LandingPage/UserAndRoles/index.tsx index a79b5cb4..6d00823b 100644 --- a/src/frontend/src/components/LandingPage/UserAndRoles/index.tsx +++ b/src/frontend/src/components/LandingPage/UserAndRoles/index.tsx @@ -1,4 +1,3 @@ -import { useState, useEffect } from 'react'; import { FlexRow } from '@Components/common/Layouts'; // import Icon from '@Components/common/Icon'; import { motion } from 'framer-motion'; @@ -9,24 +8,6 @@ import { } from '@Constants/animations'; export default function UserAndRoles() { - const [itemsToShow, setItemsToShow] = useState(1); - - useEffect(() => { - function handleResize() { - if (window.innerWidth < 768) { - setItemsToShow(1); - } else if (window.innerWidth < 1024) { - setItemsToShow(2); - } else { - setItemsToShow(3); - } - } - - window.addEventListener('resize', handleResize); - handleResize(); - return () => window.removeEventListener('resize', handleResize); - }, []); - return (
@@ -42,13 +23,6 @@ export default function UserAndRoles() { gap={5} className="naxatw-mt-20 naxatw-items-center naxatw-justify-between" > - {/* */} - {userAndRolesData.slice(0, itemsToShow).map(singleItem => ( + {userAndRolesData.map(singleItem => ( @@ -71,7 +71,7 @@ export default function Pagination({ page >= lastPage ? lastPage : page <= 1 ? 1 : page; handlePaginationState({ activePage: validPage }); }} - className="naxatw-w-12 naxatw-border-b-2 naxatw-px-1 naxatw-py-0" + className="no-spinner naxatw-w-8 naxatw-border-b-2 naxatw-px-1 naxatw-py-0 naxatw-text-center" />