Skip to content

Commit b49e3b3

Browse files
authored
Fix form widget styling (#3169)
1 parent 111283d commit b49e3b3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

resources/views/forms/widget.blade.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<div class="card flush">
2-
<div class="head">
3-
<h1><a href="{{ $form->showUrl() }}">{{ $title }}</a></h1>
1+
<div class="card p-0 overflow-hidden">
2+
<div class="flex justify-between items-center p-2">
3+
<h2><a href="{{ $form->showUrl() }}">{{ $title }}</a></h2>
44
</div>
5-
<div class="card-body pad-16">
5+
<div>
66
@if ( ! $submissions)
7-
<p class="text-center light mv-16">{{ __('This form is awaiting responses') }}</p>
7+
<p class="text-center my-2">{{ __('This form is awaiting responses') }}</p>
88
@else
9-
<table class="dossier">
9+
<table class="data-table">
1010
@foreach($submissions as $submission)
1111
<tr>
1212
@foreach($fields as $key => $field)
1313
<td><a href="{{ cp_route('forms.submissions.show', [$form->handle(), $submission['id']]) }}">{{ array_get($submission, $field) }}</a></td>
1414
@endforeach
15-
<td class="minor text-right">
15+
<td class="text-right">
1616
{{ ($submission['date']->diffInDays() <= 14) ? $submission['date']->diffForHumans() : $submission['date']->format($format) }}
1717
</td>
1818
</tr>

0 commit comments

Comments
 (0)