diff --git a/web/src/components/browse/namespace-long-row.tsx b/web/src/components/browse/namespace-long-row.tsx index 878914de..0dcae945 100644 --- a/web/src/components/browse/namespace-long-row.tsx +++ b/web/src/components/browse/namespace-long-row.tsx @@ -59,7 +59,7 @@ export const NamespaceLongRow = (props: Props) => {
{ itemRefs.current[item.namespace] = el; }} - className="col-2 flex-shrink-0" + className="col-xl-2 col-md-4 flex-shrink-0" style={{ scrollSnapAlign: 'start' }} >
diff --git a/web/src/pages/Browse.tsx b/web/src/pages/Browse.tsx index 247b83eb..bd28bdfc 100644 --- a/web/src/pages/Browse.tsx +++ b/web/src/pages/Browse.tsx @@ -52,8 +52,9 @@ export function Browse() { const topNamespace = useNamespaceProjects(selectedNamespace, { limit: 10, offset: 0, - orderBy: 'update_date', - order: 'asc', + orderBy: 'stars', + // orderBy: 'update_date', + order: 'desc', search: '', type: 'pep', }); @@ -139,52 +140,43 @@ export function Browse() {
); - const renderLongRow = () => ( -
-
- {namespaces?.data?.results ? ( - Object.values(namespaces.data.results).map((item, index) => ( -
itemRefs.current[item.namespace] = el} - className="col-2 flex-shrink-0" - style={{ scrollSnapAlign: 'start' }} - > -
-
-

- handleSelectNamespace(item?.namespace)}> - {index + 1}. {item?.namespace} - -

-

- {item?.number_of_projects} Projects -

+ const renderNamespaceGrid = () => ( +
+
+
+ {namespaces?.data?.results ? + Object.values(namespaces.data.results).map((item, index: number) => ( +
+
+
-
- )) - ) : null} + )) + : null} +
- ) + ); return (
- - -
+