Skip to content

Commit

Permalink
Merge pull request #529 from helsingborg-stad/fix/same-height-manual-…
Browse files Browse the repository at this point in the history
…input-cards

fix: Same card heights manual input
  • Loading branch information
Anna authored Nov 1, 2023
2 parents 28ec1f1 + 5716c55 commit dac1b56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/php/Module/ManualInput/views/card.blade.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
@includeWhen(empty($hideTitle) && !empty($post_title), 'partials.post-title')
@if (!empty($manualInputs))
<div class="o-grid{{ !empty($stretch) ? ' o-grid--stretch' : '' }}">
<div class="o-grid{{ !empty($stretch) ? ' o-grid--stretch' : '' }} u-height--100">
@foreach ($manualInputs as $input)
<div class="{{$columns}}">
@card([
'link' => $input['link'],
'heading' => $input['title'],
'context' => $context,
'content' => $input['content'],
'image' => $input['image'],
'classList' => [$columns, 'u-height--100'],
'imageFirst' => $input['imageBeforeContent'],
'containerAware' => true,
'classList' => ['u-height--100']
])
@endcard
</div>
@endforeach
</div>
@endif

0 comments on commit dac1b56

Please sign in to comment.