Skip to content

Commit

Permalink
Improve text only emails
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym committed Sep 11, 2023
1 parent 68af642 commit 1dcb603
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/dashboard/src/components/email/EmailDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
</div>

<div class="overflow-auto d-block email-wrapper">
<iframe frameborder="0" scrolling="no" class="w-100 d-block" @load="contentFinishedLoading" ref="renderWindow"
:srcdoc="file.html || file.text"
<iframe v-if="file.html" frameborder="0" scrolling="no" class="w-100 d-block" @load="contentFinishedLoading" ref="renderWindow"
:srcdoc="file.html"
sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin"
csp="script-src 'none'"
/>
<div v-html="file.text.replaceAll('\n', '<br>')"></div>
</div>

<template v-if="file.attachments.length > 0">
Expand Down Expand Up @@ -138,7 +139,6 @@ export default {
</script>

<style scoped lang="scss">
@media (max-width: 992px) {
.email-wrapper {
margin: 0 -1.5rem
Expand Down

0 comments on commit 1dcb603

Please sign in to comment.