1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Comments: Updated to show form in expected location

Includes a change of create response to use a branch as a template.
This commit is contained in:
Dan Brown
2023-06-08 15:03:38 +01:00
parent 154924cc0c
commit 3b46b92bb9
7 changed files with 68 additions and 51 deletions

View File

@@ -2,16 +2,14 @@
<div class="mb-m">
@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>