diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2019-08-24 17:23:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-24 17:23:05 +0800 |
| commit | c0b1c4b676dea33aaa40ece381d596a5809ebe9f (patch) | |
| tree | 5c69030cf3bbf7783ee0fbca301eda63cc285474 | |
| parent | 71aaae6dcd4f99d3e017a42e260cbd4309251bec (diff) | |
Perf: 子评论左侧对齐
| -rw-r--r-- | includes/comments.php | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/includes/comments.php b/includes/comments.php index 3458ac9..b8dcc78 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -19,12 +19,11 @@ if ($comments->_levels > 0) { $comments->alt(' comment-odd', ' comment-even');
echo $commentClass;
?>">
- <div class="container-fluid">
- <div class="row">
- <div class="comment-author-avatar col-md-1">
+ <div class="comment-body-inner">
+ <div class="comment-author-avatar">
<?php $comments->gravatar('100', ''); ?>
</div>
- <div class="comment-main comment-author-info col-md-11">
+ <div class="comment-main comment-author-info">
<div class="comment-content bubble">
<span class="comment-reply">
<?php $comments->reply('<i class="iconfont icon-return"></i>'); ?>
@@ -35,14 +34,13 @@ echo $commentClass; <span class="comment-author"><?php $comments->author(); ?></span>
<span class="comment-date"><?php $comments->date('Y-m-d H:i'); ?></span>
</p>
- <?php if ($comments->children) { ?>
+ </div>
+ </div>
+ <?php if ($comments->children) { ?>
<div class="comment-children">
<?php $comments->threadedComments($options); ?>
</div>
- <?php } ?>
- </div>
- </div>
- </div>
+ <?php } ?>
</div>
<?php } ?>
<div class="comment">
@@ -66,7 +64,7 @@ echo $commentClass; <div class="comment-form">
<!-- 判断设置是否允许对当前文章进行评论 -->
-<?php if($this->allow('comment')): ?>
+ <?php if($this->allow('comment')): ?>
<div id="<?php $this->respondId(); ?>" class="respond">
<div class="cancel-comment-reply">
<?php $comments->cancelReply(); ?>
|
