adjust height of notes field

This commit is contained in:
Kyle Spearrin 2017-10-07 21:57:00 -04:00
parent 4046339569
commit b13edfeeae
3 changed files with 13 additions and 1 deletions

View File

@ -179,7 +179,8 @@
<div class="form-group" show-errors> <div class="form-group" show-errors>
<label for="notes">Notes</label> <label for="notes">Notes</label>
<textarea id="notes" name="Notes" class="form-control" ng-model="cipher.notes" api-field></textarea> <textarea id="notes" name="Notes" class="form-control" ng-model="cipher.notes" api-field
ng-class="{'big-textarea': cipher.type === constants.cipherType.secureNote}"></textarea>
</div> </div>
<hr /> <hr />
<h4><i class="fa fa-list-ul"></i> Custom Fields</h4> <h4><i class="fa fa-list-ul"></i> Custom Fields</h4>

View File

@ -172,6 +172,7 @@
<div class="form-group" show-errors> <div class="form-group" show-errors>
<label for="notes">Notes</label> <label for="notes">Notes</label>
<textarea id="notes" name="Notes" class="form-control" ng-model="cipher.notes" <textarea id="notes" name="Notes" class="form-control" ng-model="cipher.notes"
ng-class="{'big-textarea': cipher.type === constants.cipherType.secureNote}"
ng-readonly="readOnly" api-field></textarea> ng-readonly="readOnly" api-field></textarea>
</div> </div>
<div ng-if="!readOnly || (cipher.fields && cipher.fields.length)"> <div ng-if="!readOnly || (cipher.fields && cipher.fields.length)">

View File

@ -785,3 +785,13 @@ h1, h2, h3, h4, h5, h6 {
} }
} }
} }
textarea {
&#notes {
height: 100px;
}
&.big-textarea {
height: 200px !important;
}
}