]> BookStack Code Mirror - bookstack/blobdiff - resources/views/comments/comment-branch.blade.php
Customization: Added parent tag classes
[bookstack] / resources / views / comments / comment-branch.blade.php
index d64dd4ade1d51c5055ef52d623d039fac26da1f0..658c33219c33886a585430084987999b4804f8dc 100644 (file)
@@ -1,17 +1,18 @@
-<div>
-    <div class="mb-m">
-        @include('comments.comment', ['comment' => $branch['comment']])
+{{--
+$branch CommentTreeNode
+--}}
+<div class="comment-branch">
+    <div>
+        @include('comments.comment', ['comment' => $branch->comment])
     </div>
-    @if(count($branch['children']) > 0)
-        <div class="flex-container-row">
-            <div class="pb-m">
-                <div class="comment-thread-indicator fill-height"></div>
-            </div>
-            <div class="flex">
-                @foreach($branch['children'] as $childBranch)
-                    @include('comments.comment-branch', ['branch' => $childBranch])
-                @endforeach
-            </div>
+    <div class="flex-container-row">
+        <div class="comment-thread-indicator-parent">
+            <div class="comment-thread-indicator"></div>
         </div>
-    @endif
+        <div class="comment-branch-children flex">
+            @foreach($branch->children as $childBranch)
+                @include('comments.comment-branch', ['branch' => $childBranch])
+            @endforeach
+        </div>
+    </div>
 </div>
\ No newline at end of file