Fix width of previewable editing forms

This commit is contained in:
Naoki Takezoe
2016-02-27 02:56:22 +09:00
parent 7b5b453e56
commit 3da3a048f0
5 changed files with 5 additions and 12 deletions

View File

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

View File

@@ -14,7 +14,7 @@
<div class="panel panel-default issue-box"> <div class="panel panel-default issue-box">
<div class="panel-body"> <div class="panel-body">
<span id="error-title" class="error"></span> <span id="error-title" class="error"></span>
<input type="text" id="issue-title" name="title" class="form-control input-lg" value="" placeholder="Title" style="width: 680px;" autofocus/> <input type="text" id="issue-title" name="title" class="form-control input-lg" value="" placeholder="Title" autofocus/>
@helper.html.preview( @helper.html.preview(
repository = repository, repository = repository,
content = "", content = "",
@@ -23,7 +23,7 @@
enableLineBreaks = true, enableLineBreaks = true,
enableTaskList = true, enableTaskList = true,
hasWritePermission = hasWritePermission, hasWritePermission = hasWritePermission,
style = "width: 680px; height: 200px; max-height: 250px;", style = "height: 200px; max-height: 250px;",
elastic = true elastic = true
) )
<div class="align-right"> <div class="align-right">

View File

@@ -59,7 +59,7 @@
<div class="panel panel-default issue-box"> <div class="panel panel-default issue-box">
<div class="panel-body"> <div class="panel-body">
<span class="error" id="error-title"></span> <span class="error" id="error-title"></span>
<input type="text" name="title" class="form-control input-lg" style="width: 680px" placeholder="Title"/> <input type="text" name="title" class="form-control input-lg" placeholder="Title"/>
@helper.html.preview( @helper.html.preview(
repository = repository, repository = repository,
content = "", content = "",
@@ -68,7 +68,7 @@
enableLineBreaks = true, enableLineBreaks = true,
enableTaskList = true, enableTaskList = true,
hasWritePermission = true, hasWritePermission = true,
style = "width: 680px; height: 200px;" style = "height: 200px;"
) )
<input type="hidden" name="targetUserName" value="@originRepository.owner"/> <input type="hidden" name="targetUserName" value="@originRepository.owner"/>
<input type="hidden" name="targetBranch" value="@originId"/> <input type="hidden" name="targetBranch" value="@originId"/>

View File

@@ -23,7 +23,7 @@
enableLineBreaks = true, enableLineBreaks = true,
enableTaskList = true, enableTaskList = true,
hasWritePermission = hasWritePermission, hasWritePermission = hasWritePermission,
style = "width: 635px; height: 100px; max-height: 150px;", style = "height: 100px; max-height: 150px;",
elastic = true elastic = true
) )
</div> </div>

View File

@@ -1025,7 +1025,6 @@ div.commit-comment-box > div.panel-body {
div.issue-comment-box textarea { div.issue-comment-box textarea {
width: 650px;
height: 100px; height: 100px;
max-height: 300px; max-height: 300px;
} }