From: Dessalines Date: Wed, 23 Sep 2020 23:01:45 +0000 (-0500) Subject: Re-arranging subscribed. Removing transparent cards. Fixes #38" X-Git-Url: http://these/git/%22%7Burl%7D/%7B%60%24%7BghostArchiveUrl%7D/static/gitweb.css?a=commitdiff_plain;h=fb1163e27f3bfd103c435ebb1fa1b6a4017f36b9;p=lemmy-ui.git Re-arranging subscribed. Removing transparent cards. Fixes #38" --- 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 (