diff --git a/resources/views/components/blocks/hero.blade.php b/resources/views/components/blocks/hero.blade.php index 5a3005b..85a652b 100644 --- a/resources/views/components/blocks/hero.blade.php +++ b/resources/views/components/blocks/hero.blade.php @@ -16,6 +16,8 @@ }; $eyebrow = data_get($c, 'eyebrow_text'); $eyebrowStyle = (string) data_get($c, 'eyebrow_style', 'badge'); + $subheadlineRaw = data_get($c, 'subheadline'); + $subheadline = is_string($subheadlineRaw) ? trim($subheadlineRaw) : ''; @endphp
@@ -35,9 +37,8 @@ @endif - @if ($pageState !== 'expired' && filled(data_get($c, 'subheadline'))) -
- {{ trim((string) data_get($c, 'subheadline')) }} -
+ {{-- Subheadline must sit on one line inside the div: whitespace-pre-line turns Blade indentation into visible leading space. --}} + @if ($pageState !== 'expired' && $subheadline !== '') +
{{ $subheadline }}
@endif
diff --git a/resources/views/public/page.blade.php b/resources/views/public/page.blade.php index 9d9e380..d13b248 100644 --- a/resources/views/public/page.blade.php +++ b/resources/views/public/page.blade.php @@ -85,9 +85,8 @@ @if ($pageState === 'expired')
@if (filled($page->expired_message)) -
- {{ $page->expired_message }} -
+ {{-- Same as text/hero blocks: no line breaks inside whitespace-pre-line wrapper. --}} +
{{ trim((string) $page->expired_message) }}
@else

{{ __('This pre-registration period has ended.') }}

@endif