Skip to content

Commit 6488d87

Browse files
committed
fixed alignment issue on show page
1 parent ef4737a commit 6488d87

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

views/posts/show.ejs

+10-10
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@
2626
</div>
2727
</div>
2828
</div>
29-
30-
<%if(post.comments.length!=0){%>
31-
<h5>Comments</h5>
32-
<%for(var i=0;i<post.comments.length;i++){%>
33-
<%if(post.comments[i].parents.length === 1){%>
29+
</div>
30+
31+
<%if(post.comments.length!=0){%>
32+
<h5 class="center-align">Comments</h5>
33+
<%for(var i=0;i<post.comments.length;i++){%>
34+
<%if(post.comments[i].parents.length === 1){%>
35+
<div class="container">
3436
<div class="row">
3537
<div class="col s12">
3638
<div class="card">
@@ -93,13 +95,11 @@
9395
</div>
9496
<%}%>
9597
<%}%>
96-
97-
9898
<%}%>
99-
</div>
99+
</div>
100100
</div>
101101
</div>
102-
<%}%>
102+
</div>
103103
<%}%>
104-
</div>
104+
<%}%>
105105
<%-include("../partials/footer.ejs")%>

0 commit comments

Comments
 (0)