Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-81450

Email from forum post with attachments renders incorrectly on email

XMLWordPrintable

      When using Outlook, when you open an email coming from a forum post, and that forum post has an attachment, the attachment icon is displayed at an incorrect size, as shown in the attached image.

      As far as I can tell, the problem is that the icon is an SVG, and has no intrinsic dimensions. In that case Outlook relies on CSS or image attributes to set the dimensions of the image, but it seems like the message doesn't include any CSS that targets the icon class. Failing that, Outlook renders the icon at the width of the container (in this case, the table cell it is in) so, the wider the message, the bigger the icon is displayed.

      It is not a problem in Gmail, since it just doesn't display the image and falls back to the alt text.

      Found in Moodle 4.3.3 (Build: 20240212) with the Boost theme.

            phmemmel PhMemmel
            xaviergiró Xavier Giró
            Tobias Garske Tobias Garske
            Jun Pataleta Jun Pataleta
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            3 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 21 minutes
                21m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.