1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-23 07:48:48 -05:00

make encrypted preview invisible when body is empty

This commit is contained in:
Tankred Hase 2013-11-27 11:34:24 +01:00
parent a6a1673d8b
commit 6f34ec0f44
2 changed files with 6 additions and 1 deletions

View File

@ -82,6 +82,11 @@
font-family: monospace;
color: $color-grey-light;
word-wrap: break-word;
transition: opacity 0.5s;
}
.invisible {
opacity: 0;
}
}

View File

@ -29,7 +29,7 @@
<div class="body">
<p ng-model="body" contentEditable="true" ng-change="updatePreview()" tabindex="4" focus-me="state.writer.open && writerTitle === 'Reply'"></p>
<div class="encrypt-preview">
<div class="encrypt-preview" ng-class="{'invisible': !body}">
<p>-----BEGIN ENCRYPTED PREVIEW-----<br>{{ciphertextPreview}}<br>-----END ENCRYPTED PREVIEW-----</p>
<br>
<p>{{signature}}</p>