sub-comment: Change online comment form css
@b675cb9aa38cba9d6d160ab8e0423f40ab61c82c
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
... | ... | @@ -2966,6 +2966,7 @@ |
2966 | 2966 |
margin-bottom: 0; |
2967 | 2967 |
resize: none; |
2968 | 2968 |
overflow: hidden; |
2969 |
+ padding-left: 10px; |
|
2969 | 2970 |
} |
2970 | 2971 |
|
2971 | 2972 |
button { |
... | ... | @@ -5508,6 +5509,15 @@ |
5508 | 5509 |
z-index:999; |
5509 | 5510 |
} |
5510 | 5511 |
|
5512 |
+.oneline-comment-box { |
|
5513 |
+ display: flex; |
|
5514 |
+ margin-left: 12px; |
|
5515 |
+ |
|
5516 |
+ textarea { |
|
5517 |
+ width: 100%; |
|
5518 |
+ } |
|
5519 |
+} |
|
5520 |
+ |
|
5511 | 5521 |
.textarea-box { |
5512 | 5522 |
padding: 0; |
5513 | 5523 |
margin: 0; |
--- app/assets/stylesheets/less/_responsive.less
+++ app/assets/stylesheets/less/_responsive.less
... | ... | @@ -63,6 +63,11 @@ |
63 | 63 |
.board-comment-wrap .comments .event .commit-list{ |
64 | 64 |
margin: 10px 0 !important; |
65 | 65 |
} |
66 |
+ |
|
67 |
+ .board-comment-wrap .comments .comment .subcomment-media-body { |
|
68 |
+ margin-left: 0; |
|
69 |
+ } |
|
70 |
+ |
|
66 | 71 |
.dropdown-toggle .d-label { |
67 | 72 |
width: inherit !important; |
68 | 73 |
} |
--- app/views/common/child_commentForm.scala.html
+++ app/views/common/child_commentForm.scala.html
... | ... | @@ -13,8 +13,10 @@ |
13 | 13 |
@if(isResourceCreatable(UserApp.currentUser, container, resourceType)){ |
14 | 14 |
<form id="child-comment-form" action="@action" method="post" enctype="multipart/form-data"> |
15 | 15 |
<input type="hidden" name="parentCommentId" value="@parentCommentId"/> |
16 |
- <textarea name="contents" markdown="true" id="editor-one-line-comment" rows="1" class="span10" placeholder="@Messages("comment.oneline.comment.placeholder") (ENTER)"></textarea> |
|
17 |
- <button type="submit" class="ybtn ybtn-success">OK</button> |
|
16 |
+ <div class="oneline-comment-box"> |
|
17 |
+ <textarea name="contents" markdown="true" id="editor-one-line-comment" rows="1" placeholder="@Messages("comment.oneline.comment.placeholder") (ENTER)"></textarea> |
|
18 |
+ <button type="submit" class="ybtn ybtn-success">OK</button> |
|
19 |
+ </div> |
|
18 | 20 |
</form> |
19 | 21 |
} else { |
20 | 22 |
<div class="write-comment-box mt20" title="@Messages("error.auth.unauthorized.comment")" data-login="required"> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?