invoiceninja/admin-portal

Email Rendering in Desktop App

Opened this issue · 2 comments

Setup

  • Version: v5.8.27-C155 and v5.8.27-L155
  • Environment: Docker

Interface

  • Flutter: [x]
  • React: [ ]
  • Both: [ ]

Checklist

Describe the bug

Before sending a Mail, it is not properly rendered in the preview in the desktop app. Webapp and Android app are working fine.
<br/> tags dont get respected and the theme "light" also does not work, showing only text with no styling.

Steps To Reproduce

Include the following email template and preview it in the desktop app. Optionally enable the "light" theme.

<div class="center">$view_button</div>
<p>Bei Fragen stehe ich jederzeit zur Verfügung.</p>
<p>WWW<br />XXX<br />YYY <br />ZZZ</p>

Expected Behavior

The following image (I removed privacy-sensitive information like my logo and the footer, containing my phone number):
image

Screenshots

Email from the Desktop app looks like this (here no further information is displayed. No logo, no footer and the <br/> tags do not work. Email template is exactly the same):
image

@hillelcoren

is the flutter AP transforming the data here? I cannot replicate using React or the flutter interface will the text/html displayed

image

The Flutter web and desktop apps have different email previews. Flutter doesn't yet support using the browser in a desktop app so we aren't able to show the full HTML preview.