]> Untitled Git - lemmy.git/commitdiff
Adding hr separator for top level comment groups on mobile.
authorDessalines <tyhou13@gmx.com>
Thu, 5 Mar 2020 15:02:23 +0000 (10:02 -0500)
committerDessalines <tyhou13@gmx.com>
Thu, 5 Mar 2020 15:02:23 +0000 (10:02 -0500)
ui/src/components/comment-node.tsx

index 9b476c7eb536a1ee17af7394c40207b184126592..19c8342377013d640e5e8049e8ef3cddda1a4877 100644 (file)
@@ -122,6 +122,9 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
           node.comment.parent_id && !this.props.noIndent ? 'ml-2' : ''
         }`}
       >
+        {!node.comment.parent_id && !this.props.noIndent && (
+          <hr class="d-sm-none my-2" />
+        )}
         <div
           id={`comment-${node.comment.id}`}
           className={`details comment-node mb-1 ${
@@ -130,7 +133,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
           style={
             !this.props.noIndent &&
             this.props.node.comment.parent_id &&
-            `border-left: 1px solid; border-color: ${this.state.borderColor} !important`
+            `border-left: 1px ${this.state.borderColor} solid !important`
           }
         >
           <div
@@ -697,6 +700,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
             )}
           </div>
         </div>
+        {/* end of details */}
         {this.state.showRemoveDialog && (
           <form
             class="form-inline"