THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

sub-comment: Change online comment form css

tags/v1.11.0
Suwon Chae 1 year ago
parent
commit
b675cb9aa3
3 changed files with 19 additions and 2 deletions
  1. +10
    -0
      app/assets/stylesheets/less/_page.less
  2. +5
    -0
      app/assets/stylesheets/less/_responsive.less
  3. +4
    -2
      app/views/common/child_commentForm.scala.html

+ 10
- 0
app/assets/stylesheets/less/_page.less View File

@@ -2966,6 +2966,7 @@ label.inline-list {
margin-bottom: 0;
resize: none;
overflow: hidden;
padding-left: 10px;
}

button {
@@ -5508,6 +5509,15 @@ label.issue-item-row {
z-index:999;
}

.oneline-comment-box {
display: flex;
margin-left: 12px;

textarea {
width: 100%;
}
}

.textarea-box {
padding: 0;
margin: 0;


+ 5
- 0
app/assets/stylesheets/less/_responsive.less View File

@@ -63,6 +63,11 @@
.board-comment-wrap .comments .event .commit-list{
margin: 10px 0 !important;
}

.board-comment-wrap .comments .comment .subcomment-media-body {
margin-left: 0;
}

.dropdown-toggle .d-label {
width: inherit !important;
}


+ 4
- 2
app/views/common/child_commentForm.scala.html View File

@@ -13,8 +13,10 @@
@if(isResourceCreatable(UserApp.currentUser, container, resourceType)){
<form id="child-comment-form" action="@action" method="post" enctype="multipart/form-data">
<input type="hidden" name="parentCommentId" value="@parentCommentId"/>
<textarea name="contents" markdown="true" id="editor-one-line-comment" rows="1" class="span10" placeholder="@Messages("comment.oneline.comment.placeholder") (ENTER)"></textarea>
<button type="submit" class="ybtn ybtn-success">OK</button>
<div class="oneline-comment-box">
<textarea name="contents" markdown="true" id="editor-one-line-comment" rows="1" placeholder="@Messages("comment.oneline.comment.placeholder") (ENTER)"></textarea>
<button type="submit" class="ybtn ybtn-success">OK</button>
</div>
</form>
} else {
<div class="write-comment-box mt20" title="@Messages("error.auth.unauthorized.comment")" data-login="required">


Loading…
Cancel
Save