Jelajahi Sumber

fix layout of submit button and error messages

Yuki Takei 9 tahun lalu
induk
melakukan
667a204011
1 mengubah file dengan 7 tambahan dan 4 penghapusan
  1. 7 4
      lib/views/crowi-plus/widget/comments.html

+ 7 - 4
lib/views/crowi-plus/widget/comments.html

@@ -29,10 +29,13 @@
             <input type="hidden" name="_csrf" value="{{ csrf() }}">
             <input type="hidden" name="commentForm[page_id]" value="{{ page._id.toString() }}">
             <input type="hidden" name="commentForm[revision_id]" value="{{ revision._id.toString() }}">
-            <p class="text-danger" id="comment-form-message"></p>
-            <button type="submit" id="comment-form-button" class="btn btn-primary form-inline">
-              <i class="fa fa-comment comment-ico" aria-hidden="true"></i>Comment
-            </button>
+            <div class="pull-right">
+              <span class="text-danger" id="comment-form-message"></span>
+              <button type="submit" id="comment-form-button" class="btn btn-primary form-inline">
+                <i class="fa fa-comment comment-ico" aria-hidden="true"></i>Comment
+              </button>
+            </div>
+            <div class="clearfix"></div>
           </div>
         </div>
       </div>