From ab0805432dab4594ede8fc8579e3750d9b3187a7 Mon Sep 17 00:00:00 2001 From: abias Date: Wed, 14 Jun 2023 20:52:31 -0400 Subject: [PATCH] Make comment border colors semi-transparent --- src/server/index.tsx | 2 +- src/shared/components/comment/comment-node.tsx | 11 ++++------- src/shared/utils.ts | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/server/index.tsx b/src/server/index.tsx index 43024076..06dc33a4 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -156,7 +156,7 @@ server.get("/*", async (req, res) => { site = try_site.data; initializeSite(site); - if (path != "/setup" && !site.site_view.local_site.site_setup) { + if (path !== "/setup" && !site.site_view.local_site.site_setup) { return res.redirect("/setup"); } diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index 51826462..0380a726 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -270,10 +270,6 @@ export class CommentNode extends Component { this.props.moderators ); - - const borderColor = this.props.node.depth - ? colorList[(this.props.node.depth - 1) % colorList.length] - : colorList[0]; const moreRepliesBorderColor = this.props.node.depth ? colorList[this.props.node.depth % colorList.length] : colorList[0]; @@ -951,9 +947,9 @@ export class CommentNode extends Component { {showMoreChildren && (