mjml icon indicating copy to clipboard operation
mjml copied to clipboard

added note to table docs about images and lineheight

Open hayden-t opened this issue 9 months ago • 5 comments

hayden-t avatar Apr 15 '25 22:04 hayden-t

I'm fine adding something like this in the doc, but it's not really related to MJML this is how HTML/CSS and browsers works in general. mj-table isn't the only one affected you can do the same within mj-text. Maybe it should be mentioned in a new troubleshoot section of the doc

On Wed, Apr 16, 2025 at 12:12 AM hayden-t @.***> wrote:


You can view, comment on, or merge this pull request online at:

https://github.com/mjmlio/mjml/pull/2948 Commit Summary

File Changes

(1 file https://github.com/mjmlio/mjml/pull/2948/files)

Patch Links:

  • https://github.com/mjmlio/mjml/pull/2948.patch
  • https://github.com/mjmlio/mjml/pull/2948.diff

— Reply to this email directly, view it on GitHub https://github.com/mjmlio/mjml/pull/2948, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAELHTIGAVVJN7F5KMNUS732ZV743AVCNFSM6AAAAAB3GXZPPGVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE4TONZVGYYDIMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

iRyusa avatar Apr 15 '25 22:04 iRyusa

text has a default line height of 1, not sure if that would behave similarly. but if so it might need a note too, or as you suggest have it somewhere else more 'general tips'

hayden-t avatar Apr 16 '25 00:04 hayden-t

Hi @hayden-t, sorry if I've missed the point here but what is the issue with adding images in tables, with respect to the line-height?

We are looking to add a troubleshooting section to the website at some point and I want to understand what this tip is aiming to fix. Thanks

DazGreerMJ avatar Aug 21 '25 15:08 DazGreerMJ

Been a while, but this pull request suggests adding : "If you put image/s inside, you will need to set line-height at the td or table level to override the default, so it will display at desired height."

hayden-t avatar Aug 21 '25 21:08 hayden-t

Thanks @hayden-t, I understand what you're asking in the PR, I was asking what the specific issue is with adding images to tables with respect to line-height?

I want to determine whether it's right to add this to the documentation (issue with MJML) or whether it would be better served in a troubleshooting section (general HTML issue).

If you're able to supply code in our editor (https://mjml.io/try-it-live) to demonstrate, that would be very helpful. Thanks

DazGreerMJ avatar Sep 04 '25 09:09 DazGreerMJ