Fix width and font of the dropzone

This commit is contained in:
Naoki Takezoe
2015-12-15 14:56:24 +09:00
parent 1a4b94e5df
commit 1c36b185ec
3 changed files with 6 additions and 3 deletions

View File

@@ -29,7 +29,10 @@ $(function(){
}
// Adjust clickable area width
$('#@textareaId').next('div.clickable').css('width', ($('#@textareaId').width() + 18) + 'px');
$('#@textareaId').next('div.clickable').css({
'width': ($('#@textareaId').width() + 18) + 'px',
'font-size': '13px'
});
});
</script>
}

View File

@@ -2,7 +2,7 @@
@import context._
<span id="error-edit-content-@commentId" class="error"></span>
@helper.html.attached(owner, repository){
<textarea id="edit-content-@commentId">@content</textarea>
<textarea id="edit-content-@commentId" class="form-control">@content</textarea>
}
<div>
<input type="button" id="cancel-comment-@commentId" class="btn btn-lg btn-danger" value="Cancel"/>

View File

@@ -1,7 +1,7 @@
@(content: Option[String], issueId: Int, owner: String, repository: String)(implicit context: gitbucket.core.controller.Context)
@import context._
@helper.html.attached(owner, repository){
<textarea id="edit-content">@content.getOrElse("")</textarea>
<textarea id="edit-content" class="form-control">@content.getOrElse("")</textarea>
}
<div>
<input type="button" id="cancel-issue" class="btn btn-lg btn-danger" value="Cancel"/>