diff options
Diffstat (limited to 'src/components/SignatureSettings.vue')
-rw-r--r-- | src/components/SignatureSettings.vue | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/SignatureSettings.vue b/src/components/SignatureSettings.vue index c945db864..c414ff7f9 100644 --- a/src/components/SignatureSettings.vue +++ b/src/components/SignatureSettings.vue @@ -45,6 +45,9 @@ :html="true" :placeholder="t('mail', 'Signature …')" :bus="bus" /> + <p v-if="isLargeSignature" class="warning-large-signature"> + {{ t('mail', 'Your signature is larger than 2 MB. This may affect the performance of your editor.')}} + </p> <ButtonVue type="primary" :disabled="loading" @@ -115,6 +118,9 @@ export default { return identities }, + isLargeSignature() { + return (new Blob([this.signature])).size > 2 * 1024 * 1024 + } }, watch: { async signatureAboveQuote(val, oldVal) { @@ -223,4 +229,7 @@ export default { display: inline-block !important; margin-top: 4px !important; } +.warning-large-signature { + color: darkorange; +} </style> |