Skip to content

Commit

Permalink
Break words on table cells
Browse files Browse the repository at this point in the history
Fixes an issue with long strings causing the layout to expand in iOS mail and iCloud
  • Loading branch information
derekrushforth committed Apr 10, 2017
1 parent 1d8cebe commit 48713ad
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/comment_notification.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
a img {
border: none;
}

td {
word-break: break-word;
}
/* Layout ------------------------------ */

.email-wrapper {
Expand Down
4 changes: 4 additions & 0 deletions dist/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
a img {
border: none;
}

td {
word-break: break-word;
}
/* Layout ------------------------------ */

.email-wrapper {
Expand Down
4 changes: 4 additions & 0 deletions dist/invoice.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
a img {
border: none;
}

td {
word-break: break-word;
}
/* Layout ------------------------------ */

.email-wrapper {
Expand Down
4 changes: 4 additions & 0 deletions dist/password_reset.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
a img {
border: none;
}

td {
word-break: break-word;
}
/* Layout ------------------------------ */

.email-wrapper {
Expand Down
4 changes: 4 additions & 0 deletions dist/password_reset_help.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
a img {
border: none;
}

td {
word-break: break-word;
}
/* Layout ------------------------------ */

.email-wrapper {
Expand Down
4 changes: 4 additions & 0 deletions dist/receipt.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
a img {
border: none;
}

td {
word-break: break-word;
}
/* Layout ------------------------------ */

.email-wrapper {
Expand Down
4 changes: 4 additions & 0 deletions dist/trial_expired.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
a img {
border: none;
}

td {
word-break: break-word;
}
/* Layout ------------------------------ */

.email-wrapper {
Expand Down
4 changes: 4 additions & 0 deletions dist/trial_expiring.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
a img {
border: none;
}

td {
word-break: break-word;
}
/* Layout ------------------------------ */

.email-wrapper {
Expand Down
4 changes: 4 additions & 0 deletions dist/user_invitation.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
a img {
border: none;
}

td {
word-break: break-word;
}
/* Layout ------------------------------ */

.email-wrapper {
Expand Down
4 changes: 4 additions & 0 deletions dist/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
a img {
border: none;
}

td {
word-break: break-word;
}
/* Layout ------------------------------ */

.email-wrapper {
Expand Down
3 changes: 3 additions & 0 deletions src/stylesheets/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ a {
a img {
border: none; }

td {
word-break: break-word; }

/* Layout ------------------------------ */
.email-wrapper {
width: 100%;
Expand Down
4 changes: 4 additions & 0 deletions src/stylesheets/scss/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ a {
border: none;
}
}

td {
word-break: break-word;
}

0 comments on commit 48713ad

Please sign in to comment.