From 191a551ea3fbe0e0974ea7f9d8d8bd775e5fd9d4 Mon Sep 17 00:00:00 2001 From: israellund Date: Fri, 11 Oct 2024 09:32:04 -0400 Subject: [PATCH 1/3] more communities shown on explore page --- .../client/scripts/views/pages/Communities/Communities.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/commonwealth/client/scripts/views/pages/Communities/Communities.tsx b/packages/commonwealth/client/scripts/views/pages/Communities/Communities.tsx index 2ec7b0f5c10..4bcbbd4ec9f 100644 --- a/packages/commonwealth/client/scripts/views/pages/Communities/Communities.tsx +++ b/packages/commonwealth/client/scripts/views/pages/Communities/Communities.tsx @@ -33,8 +33,6 @@ type ExtendedCommunitySliceType = [ ]; const CommunitiesPage = () => { - const containerRef = useRef(); - const { setModeOfManageCommunityStakeModal, modeOfManageCommunityStakeModal, @@ -137,8 +135,7 @@ const CommunitiesPage = () => { }; return ( - // @ts-expect-error - +
@@ -206,7 +203,6 @@ const CommunitiesPage = () => { className="communities-list" style={{ height: '100%', width: '100%' }} data={isInitialCommunitiesLoading ? [] : communitiesList} - customScrollParent={containerRef.current} itemContent={(listIndex, slicedCommunities) => { return slicedCommunities.map((community, sliceIndex) => { const canBuyStake = !!user.addresses.find?.( From 7aacb5f4c28f50eac897fef19f7ab49bf33c5751 Mon Sep 17 00:00:00 2001 From: israellund Date: Fri, 11 Oct 2024 14:51:40 -0400 Subject: [PATCH 2/3] committing to change branches --- .../client/scripts/views/pages/Communities/Communities.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/commonwealth/client/scripts/views/pages/Communities/Communities.tsx b/packages/commonwealth/client/scripts/views/pages/Communities/Communities.tsx index 4bcbbd4ec9f..2ec7b0f5c10 100644 --- a/packages/commonwealth/client/scripts/views/pages/Communities/Communities.tsx +++ b/packages/commonwealth/client/scripts/views/pages/Communities/Communities.tsx @@ -33,6 +33,8 @@ type ExtendedCommunitySliceType = [ ]; const CommunitiesPage = () => { + const containerRef = useRef(); + const { setModeOfManageCommunityStakeModal, modeOfManageCommunityStakeModal, @@ -135,7 +137,8 @@ const CommunitiesPage = () => { }; return ( - + // @ts-expect-error +
@@ -203,6 +206,7 @@ const CommunitiesPage = () => { className="communities-list" style={{ height: '100%', width: '100%' }} data={isInitialCommunitiesLoading ? [] : communitiesList} + customScrollParent={containerRef.current} itemContent={(listIndex, slicedCommunities) => { return slicedCommunities.map((community, sliceIndex) => { const canBuyStake = !!user.addresses.find?.( From 99ee3ebc8c56e45a78c1bee1598193fd19ab134e Mon Sep 17 00:00:00 2001 From: israellund Date: Tue, 15 Oct 2024 10:53:12 -0400 Subject: [PATCH 3/3] changed styling for overflow --- .../client/scripts/views/pages/Communities/Communities.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/commonwealth/client/scripts/views/pages/Communities/Communities.scss b/packages/commonwealth/client/scripts/views/pages/Communities/Communities.scss index faae21b4ad1..e2851e3c690 100644 --- a/packages/commonwealth/client/scripts/views/pages/Communities/Communities.scss +++ b/packages/commonwealth/client/scripts/views/pages/Communities/Communities.scss @@ -7,6 +7,7 @@ .CommunitiesPageLayout { padding-top: 0; height: 100%; + overflow-y: auto; .layout-container { height: 100%;