From 94c37538f8b8489cf8497062e69cd284b30ba467 Mon Sep 17 00:00:00 2001 From: Christian Taylor Date: Thu, 2 Apr 2020 08:24:07 -0500 Subject: [PATCH] Prevent long URLs from breaking email layouts --- src/Illuminate/Mail/resources/views/html/themes/default.css | 6 ++++++ .../Notifications/resources/views/email.blade.php | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Illuminate/Mail/resources/views/html/themes/default.css b/src/Illuminate/Mail/resources/views/html/themes/default.css index e5a44717880a..37c3edd9ea1f 100644 --- a/src/Illuminate/Mail/resources/views/html/themes/default.css +++ b/src/Illuminate/Mail/resources/views/html/themes/default.css @@ -290,3 +290,9 @@ img { font-size: 15px; text-align: center; } + +/* Utilities */ + +.break-all { + word-break: break-all; +} diff --git a/src/Illuminate/Notifications/resources/views/email.blade.php b/src/Illuminate/Notifications/resources/views/email.blade.php index 5de1e35375ed..e7a56b461d94 100644 --- a/src/Illuminate/Notifications/resources/views/email.blade.php +++ b/src/Illuminate/Notifications/resources/views/email.blade.php @@ -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, ] -) +) [{{ $displayableActionUrl }}]({{ $actionUrl }}) @endslot @endisset @endcomponent