File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { useRegistryDetailsQuery } from "hooks/queries/useRegistryDetailsQuery";
1111import { List_filters } from "consts/filters" ;
1212import { sortRegistriesByIds } from "utils/sortRegistriesByIds" ;
1313import { MAIN_CURATE_ADDRESS } from "src/consts" ;
14- import { LG_BREAKPOINT } from "src/styles/breakpoints" ;
14+ import { LG_BREAKPOINT , SM_BREAKPOINT } from "src/styles/breakpoints" ;
1515
1616const RegistriesFetcher : React . FC = ( ) => {
1717 const { page, order, filter } = useParams ( ) ;
@@ -21,7 +21,7 @@ const RegistriesFetcher: React.FC = () => {
2121 const navigate = useNavigate ( ) ;
2222 const { width } = useWindowSize ( ) ;
2323 const location = useListRootPath ( ) ;
24- const registriesPerPage = width > LG_BREAKPOINT ? 9 : 3 ;
24+ const registriesPerPage = width > LG_BREAKPOINT ? 9 : width > SM_BREAKPOINT ? 6 : 3 ;
2525 const pageNumber = parseInt ( page ?? "1" , 10 ) ;
2626 const registrySkip = registriesPerPage * ( pageNumber - 1 ) ;
2727
Original file line number Diff line number Diff line change 11export const LG_BREAKPOINT = 900 ;
2+ export const SM_BREAKPOINT = 600 ;
You can’t perform that action at this time.
0 commit comments