Browse Source

cmskit commets: comment/reply form alignment

pull/5024/head
Yunus Emre Kalkan 6 years ago
parent
commit
77b76e44fa
  1. 5
      modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml

5
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml

@ -19,7 +19,8 @@
} }
@{ @{
Func<dynamic, IHtmlContent> GetCommentArea(Guid? repliedCommentId, bool cancelButton = false) => Func<dynamic, IHtmlContent> GetCommentArea(Guid? repliedCommentId, bool cancelButton = false) =>
@<div class="cms-comment-form-area" data-reply-id="@(repliedCommentId?.ToString() ?? "")" @<div class="cms-comment-form-area @(repliedCommentId.HasValue ? "pl-5":"")"
data-reply-id="@(repliedCommentId?.ToString() ?? "")"
style="@(string.IsNullOrEmpty(repliedCommentId?.ToString() ?? "") ? "" : "display:none")"> style="@(string.IsNullOrEmpty(repliedCommentId?.ToString() ?? "") ? "" : "display:none")">
<form class="cms-comment-form"> <form class="cms-comment-form">
<input hidden value="@(repliedCommentId?.ToString() ?? "")" name="repliedCommentId"/> <input hidden value="@(repliedCommentId?.ToString() ?? "")" name="repliedCommentId"/>
@ -130,7 +131,7 @@
</div> </div>
</div> </div>
} }
<div class="p-3 pl-5"> <div class="">
@if (CurrentUser.IsAuthenticated) @if (CurrentUser.IsAuthenticated)
{ {
@GetCommentArea(null).Invoke(null) @GetCommentArea(null).Invoke(null)

Loading…
Cancel
Save