diff --git a/src/shared/components/comment-node.tsx b/src/shared/components/comment-node.tsx index 0e7db68d..33518f82 100644 --- a/src/shared/components/comment-node.tsx +++ b/src/shared/components/comment-node.tsx @@ -193,11 +193,14 @@ export class CommentNode extends Component { {/* This is an expanding spacer for mobile */}
@@ -1232,6 +1235,7 @@ export class CommentNode extends Component { handleCommentCollapse(i: CommentNode) { i.state.collapsed = !i.state.collapsed; i.setState(i.state); + setupTippy(); } handleViewSource(i: CommentNode) { @@ -1270,4 +1274,8 @@ export class CommentNode extends Component { return `${points} • ${upvotes} • ${downvotes}`; } + + get expandText(): string { + return this.state.collapsed ? i18n.t("expand") : i18n.t("collapse"); + } }