From 6c31d6aba30ac0d58cc38570bf685fb04f1facb5 Mon Sep 17 00:00:00 2001 From: Steffen Ruether Date: Thu, 14 Nov 2024 16:34:46 +0100 Subject: [PATCH] feat: enhance adaptive split layout with conditional headline rendering --- .../layout-modules/adaptive-split.blade.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/resources/views/components/layout-modules/adaptive-split.blade.php b/resources/views/components/layout-modules/adaptive-split.blade.php index ff9d0c9f..75bf53e9 100644 --- a/resources/views/components/layout-modules/adaptive-split.blade.php +++ b/resources/views/components/layout-modules/adaptive-split.blade.php @@ -1,6 +1,14 @@ @switch($presentation) @case('sticky_column')
class(['layout-content']) }}> + @if ($headline && $alignment->raw() !== 'inline') +
+ + {{ $headline }} + +
+ @endif +
@if ($enable_head_section->value())
@@ -12,9 +20,9 @@ @endif
- @if ($headline) + @if ($headline && $alignment->raw() === 'inline')
- + {{ $headline }}
@@ -22,7 +30,7 @@ class="top-32 col-span-full self-start sm:sticky sm:col-span-6 sm:col-start-1 sm
@if ($enable_tail_section->value()) -
+
@foreach ($tail_elements as $element)