1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 19:02:20 -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; font-family: monospace;
color: $color-grey-light; color: $color-grey-light;
word-wrap: break-word; word-wrap: break-word;
transition: opacity 0.5s;
}
.invisible {
opacity: 0;
} }
} }

View File

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