Просмотр исходного кода

feat: 优化评论界面的间距

SongZihuan 2 лет назад
Родитель
Сommit
57183cb8cb
2 измененных файлов с 2 добавлено и 6 удалено
  1. 1 1
      templates/base.html
  2. 1 5
      templates/docx/article.html

+ 1 - 1
templates/base.html

@@ -127,7 +127,7 @@
         </div>
     {% endif %}
 
-    <div class="card mb-3">
+    <div class="card my-3">  {# 此处使用上下间距 #}
         <div class="card-header bg-secondary text-white">
             {% if show_email %}  {# 判断是否可读取用户信息 #}
                 {{ comment.auth.email }}

+ 1 - 5
templates/docx/article.html

@@ -95,11 +95,7 @@
         {% endif %}
 
         <div id="CommentList" class="row">
-            <article class="col-12">
-                {% if current_user.check_role("WriteComment") or current_user.check_role("ReadComment") %}
-                    <h1 class="mt-3"> 评论 </h1>
-                {% endif %}
-
+            <article class="col-12 mt-3">
                 {% if current_user.check_role("WriteComment") %}
                     <section class="col-12 text-end">
                         <form action="{{ url_for('docx.comment_page', blog=article.id) }}" method="post" class="was-validated">