mirror of
https://github.com/moparisthebest/mail
synced 2025-01-10 21:18:02 -05:00
hide cyphertext from dom
This commit is contained in:
parent
250aa4b886
commit
f770b52566
@ -85,7 +85,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
|
||||||
div {
|
&.line {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
|
||||||
&.empty-line {
|
&.empty-line {
|
||||||
|
@ -36,10 +36,17 @@
|
|||||||
</div><!--/.ng-switch-->
|
</div><!--/.ng-switch-->
|
||||||
|
|
||||||
|
|
||||||
<div class="body">
|
<div class="body" ng-switch="state.mailList.selected.encrypted === false || state.mailList.selected.decrypted === true">
|
||||||
<!-- Render lines of a text-email in divs for easier styling -->
|
<div class="line">
|
||||||
<div ng-repeat="line in state.mailList.selected.body.split('\n') track by $index" ng-class="{'empty-line': lineEmpty(line)}">
|
<div ng-switch-when="true">
|
||||||
{{line}}<br>
|
<!-- Render lines of a text-email in divs for easier styling -->
|
||||||
|
<div ng-repeat="line in state.mailList.selected.body.split('\n') track by $index" ng-class="{'empty-line': lineEmpty(line)}">
|
||||||
|
{{line}}<br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div ng-switch-when="false">
|
||||||
|
This message contains encrypted content.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!--/.body-->
|
</div><!--/.body-->
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user