Skip to content

Commit

Permalink
Merge pull request #1912 from IsaacYangSLA/fix/S3_checkbox
Browse files Browse the repository at this point in the history
Fix checkbox style in S3 tab
  • Loading branch information
IsaacYangSLA committed Dec 12, 2017
2 parents bb7e090 + 75ea507 commit d823b17
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions digits/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,16 @@ input[readonly]:disabled {
background-color: #EEE !important;
cursor: not-allowed !important;
}
.checkbox-fix {
display: flex;
}

.checkbox-fix input[type=checkbox]{
margin: 4px 5px 5px 0;
padding: 0;
width: auto;
height: auto;
}

a.active {
font-weight: 900;
Expand Down
4 changes: 2 additions & 2 deletions digits/templates/datasets/images/classification/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,10 @@ <h1>New Image Classification Dataset</h1>
{{ form.s3_secretkey.tooltip }}
{{ form.s3_secretkey(class='form-control', placeholder='S3 Secret Key', type='password')}}
</div>
<div class="form-group{{mark_errors([form.s3_keepcopiesondisk])}}">
<div class="form-group checkbox-fix {{mark_errors([form.s3_keepcopiesondisk])}}">
{{ form.s3_keepcopiesondisk(class='form-control', placeholder='S3 Secret Key', type='checkbox')}}
{{ form.s3_keepcopiesondisk.label }}
{{ form.s3_keepcopiesondisk.tooltip }}
{{ form.s3_keepcopiesondisk(class='form-control', placeholder='S3 Secret Key', type='checkbox')}}
</div>
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
Expand Down

0 comments on commit d823b17

Please sign in to comment.