From 1fa2cfce51d15c0f7729e9ce2e0ed15442b19565 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 19 Aug 2019 21:45:06 -0700 Subject: [PATCH] Separate sidebar. --- ui/src/components/main.tsx | 105 +++++++++++++++++++------------------ 1 file changed, 54 insertions(+), 51 deletions(-) diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index 326318116..1363a6939 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -180,16 +180,14 @@ export class Main extends Component { sidebar() { return ( -
-
- {!this.state.showEditSite ? - this.siteInfo() : - - } -
+
+ {!this.state.showEditSite ? + this.siteInfo() : + + }
) } @@ -203,47 +201,52 @@ export class Main extends Component { siteInfo() { return (
-
{`${this.state.site.site.name}`}
- {this.canAdmin && -
    -
  • - - # - -
  • -
- } -
    -
  • - # -
  • -
  • - # -
  • -
  • - # -
  • -
  • - - # - -
  • -
-
    -
  • - #: -
  • - {this.state.site.admins.map(admin => -
  • {admin.name}
  • - )} -
- {this.state.site.site.description && -
-
-
+
+
+
{`${this.state.site.site.name}`}
+ {this.canAdmin && +
    +
  • + + # + +
  • +
+ } +
    +
  • + # +
  • +
  • + # +
  • +
  • + # +
  • +
  • + + # + +
  • +
+
    +
  • + #: +
  • + {this.state.site.admins.map(admin => +
  • {admin.name}
  • + )} +
+
- } -
+ {this.state.site.site.description && +
+
+
+
+
+ } +
) } @@ -256,7 +259,7 @@ export class Main extends Component { # Lemmybeta -

+

###

#

#

#

####