From: Jay Sitter Date: Sat, 17 Jun 2023 21:01:14 +0000 (-0400) Subject: fix: Fix some small style issues X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%7Bthis.state.thumbnail%7D?a=commitdiff_plain;h=3564c6c379ff7be50b26dea9240080656bc30316;p=lemmy-ui.git fix: Fix some small style issues --- diff --git a/src/shared/components/home/home.tsx b/src/shared/components/home/home.tsx index 0acef49..483d8cc 100644 --- a/src/shared/components/home/home.tsx +++ b/src/shared/components/home/home.tsx @@ -1,4 +1,3 @@ -import classNames from "classnames"; import { NoOptionI18nKeys } from "i18next"; import { Component, linkEvent, MouseEventHandler } from "inferno"; import { T } from "inferno-i18next-dess"; @@ -506,11 +505,7 @@ export class Home extends Component { case "success": { const trending = this.state.trendingCommunitiesRes.data.communities; return ( -
+ <>
@@ -522,13 +517,15 @@ export class Home extends Component {
-
    - {trending.map(cv => ( -
  • - -
  • - ))} -
+ {trending.length > 0 && ( +
    + {trending.map(cv => ( +
  • + +
  • + ))} +
+ )} {canCreateCommunity(this.state.siteRes) && ( { translationKey="explore_communities" />
-
+ ); } } diff --git a/src/shared/components/home/site-sidebar.tsx b/src/shared/components/home/site-sidebar.tsx index f408173..cc587bf 100644 --- a/src/shared/components/home/site-sidebar.tsx +++ b/src/shared/components/home/site-sidebar.tsx @@ -31,10 +31,7 @@ export class SiteSidebar extends Component { render() { return (
-
+