mirror of
https://github.com/moparisthebest/mail
synced 2024-11-23 01:12:19 -05:00
make encrypted preview invisible when body is empty
This commit is contained in:
parent
a6a1673d8b
commit
6f34ec0f44
@ -82,6 +82,11 @@
|
||||
font-family: monospace;
|
||||
color: $color-grey-light;
|
||||
word-wrap: break-word;
|
||||
transition: opacity 0.5s;
|
||||
}
|
||||
|
||||
.invisible {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user