From fb1163e27f3bfd103c435ebb1fa1b6a4017f36b9 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 23 Sep 2020 18:01:45 -0500 Subject: [PATCH] Re-arranging subscribed. Removing transparent cards. Fixes #38" --- src/shared/components/community.tsx | 2 +- src/shared/components/iframely-card.tsx | 2 +- src/shared/components/main.tsx | 95 +++++++++++---------- src/shared/components/markdown-textarea.tsx | 2 +- src/shared/components/sidebar.tsx | 77 ++++++++++------- src/shared/components/user.tsx | 12 +-- 6 files changed, 102 insertions(+), 88 deletions(-) diff --git a/src/shared/components/community.tsx b/src/shared/components/community.tsx index b76a216..e994d0b 100644 --- a/src/shared/components/community.tsx +++ b/src/shared/components/community.tsx @@ -243,7 +243,7 @@ export class Community extends Component { {this.communityInfo()} diff --git a/src/shared/components/iframely-card.tsx b/src/shared/components/iframely-card.tsx index 6a604f7..c62bf3d 100644 --- a/src/shared/components/iframely-card.tsx +++ b/src/shared/components/iframely-card.tsx @@ -29,7 +29,7 @@ export class IFramelyCard extends Component< return ( <> {post.embed_title && !this.state.expanded && ( -
+
diff --git a/src/shared/components/main.tsx b/src/shared/components/main.tsx index 54bb66b..7a5f814 100644 --- a/src/shared/components/main.tsx +++ b/src/shared/components/main.tsx @@ -274,28 +274,25 @@ export class Main extends Component {
{!this.state.loading && (
-
-
-
- {this.siteName()} - {this.adminButtons()} -
- -
+
{this.trendingCommunities()} {this.createCommunityButton()} - {/* TODO - {this.subscribedCommunities()} - */}
-
+ {UserService.Instance.user && + this.state.subscribedCommunities.length > 0 && ( +
+
{this.subscribedCommunities()}
+
+ )} + +
{this.sidebar()}
-
+
{this.landing()}
@@ -336,34 +333,31 @@ export class Main extends Component { subscribedCommunities() { return ( - UserService.Instance.user && - this.state.subscribedCommunities.length > 0 && ( -
-
- +
+
+ + # + # - - # - - -
-
    - {this.state.subscribedCommunities.map(community => ( -
  • - -
  • - ))} -
-
- ) + +
+
+
    + {this.state.subscribedCommunities.map(community => ( +
  • + +
  • + ))} +
+
); } @@ -371,7 +365,14 @@ export class Main extends Component { return (
{!this.state.showEditSite ? ( - this.siteInfo() +
+
+ {this.siteName()} + {this.adminButtons()} +
+ + {this.siteInfo()} +
) : ( { badges() { return (