Skip to content

Commit

Permalink
Prevent long URLs from breaking email layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
imacrayon committed Mar 31, 2020
1 parent cdf7ebc commit 8dba2ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/Illuminate/Mail/resources/views/html/themes/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,9 @@ img {
margin-bottom: 0;
padding-bottom: 0;
}

/* Utilities */

.break-all {
word-break: break-all;
}
6 changes: 2 additions & 4 deletions src/Illuminate/Notifications/resources/views/email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@
@slot('subcopy')
@lang(
"If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n".
'into your web browser: [:displayableActionUrl](:actionURL)',
'into your web browser:',
[
'actionText' => $actionText,
'actionURL' => $actionUrl,
'displayableActionUrl' => $displayableActionUrl,
]
)
) <span class="break-all">[{{ $displayableActionUrl }}]({{ $actionUrl }})</span>
@endslot
@endisset
@endcomponent

0 comments on commit 8dba2ad

Please sign in to comment.