feat(k2): Wrap lines on preformatted text

Summary:
We now use <pre> tags to preserve whitespace in plaintext emails,
but it's annoying when there are long lines that force a scroll
bar. Wrap them instead.

Test Plan:
looked at some emails. Not sure this isn't going to break something
           weird---is <pre> used in anything else?

Reviewers: bengotow

Differential Revision: https://phab.nylas.com/D3484
This commit is contained in:
Christine Spang 2016-12-06 16:58:30 -08:00
parent f170d14b8d
commit 988c6022da
2 changed files with 6 additions and 1 deletions

2
src/K2

@ -1 +1 @@
Subproject commit f0b15bcf27f215cb1781fec75284b8d82ba64f3a
Subproject commit 36fe5050cd5d8c644adf5246d601cd829909b3a5

View file

@ -99,6 +99,11 @@
max-width: 100%;
}
pre.nylas-plaintext {
white-space: pre-wrap;
word-wrap: break-word;
}
img {
border: 0;
}