mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 11:23:48 -05:00
It’s a bit silly to have email templates expandable if you’re only going to reveal a couple more lines. This commit adds a data attribute which specifies how high (in pixels) the email template can be before it gets truncated. It then changes the script to only truncate emails which are naturally taller than this height. Currently the cut off is at 200px, which is approximately 8 lines of text: `200px / (font-size: 19px * line-height: 1.31) = 8.03`