fix: avoid visible leading space in whitespace-pre-line blocks

Render hero subheadline and expired message on one line so Blade indentation is not preserved by whitespace-pre-line.

Made-with: Cursor
This commit is contained in:
2026-04-04 10:34:45 +02:00
parent 6791c8349a
commit 26258c5f8b
2 changed files with 7 additions and 7 deletions

View File

@@ -85,9 +85,8 @@
@if ($pageState === 'expired')
<div class="space-y-6">
@if (filled($page->expired_message))
<div class="whitespace-pre-line text-center text-[15px] leading-[1.65] text-white/92 sm:text-base sm:leading-relaxed">
{{ $page->expired_message }}
</div>
{{-- Same as text/hero blocks: no line breaks inside whitespace-pre-line wrapper. --}}
<div class="whitespace-pre-line text-center text-[15px] leading-[1.65] text-white/92 sm:text-base sm:leading-relaxed">{{ trim((string) $page->expired_message) }}</div>
@else
<p class="text-center text-[15px] leading-relaxed text-white/92 sm:text-base">{{ __('This pre-registration period has ended.') }}</p>
@endif