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:
parent
a6a1673d8b
commit
6f34ec0f44
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user