Skip to content

Commit 8d0c2a2

Browse files
authored
- moved the semicolon in cols template in the style from the if clause (#1768)
1 parent 1f48ead commit 8d0c2a2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

resources/views/components/cols.blade.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@
3535
: null;
3636
@endphp
3737
<th
38-
x-data="{ sortable: @js(data_get($column, 'sortable')) }"
39-
@if ($sortOrder) sort_order="{{ $sortOrder }}" @endif
40-
class="{{ theme_style($theme, 'table.header.th') . ' ' . data_get($column, 'headerClass') }}"
41-
@if ($isFixedOnResponsive) fixed @endif
42-
@if (data_get($column, 'enableSort')) x-multisort-shift-click="{{ $this->getId() }}"
38+
x-data="{ sortable: @js(data_get($column, 'sortable')) }"
39+
@if ($sortOrder) sort_order="{{ $sortOrder }}" @endif
40+
class="{{ theme_style($theme, 'table.header.th') . ' ' . data_get($column, 'headerClass') }}"
41+
@if ($isFixedOnResponsive) fixed @endif
42+
@if (data_get($column, 'enableSort')) x-multisort-shift-click="{{ $this->getId() }}"
4343
wire:click="sortBy('{{ $field }}')" @endif
44-
style="{{ data_get($column, 'hidden') === true ? 'display:none' : ''; }} width: max-content !important; @if (data_get($column, 'enableSort')) cursor:pointer; @endif {{ data_get($column, 'headerStyle') }}"
44+
style="{{ data_get($column, 'hidden') === true ? 'display:none;' : '' }} width: max-content !important; @if (data_get($column, 'enableSort')) cursor:pointer; @endif {{ data_get($column, 'headerStyle') }}"
4545
>
4646
<div
47-
class="{{ theme_style($theme, 'cols.div') }}"
47+
class="{{ theme_style($theme, 'cols.div') }}"
4848
>
4949
<span data-value>{!! data_get($column, 'title') !!}</span>
5050

5151
@if (data_get($column, 'enableSort'))
5252
<x-dynamic-component
53-
component="{{ $this->sortIcon($field) }}"
54-
width="16"
53+
component="{{ $this->sortIcon($field) }}"
54+
width="16"
5555
/>
5656
@endif
5757
</div>

0 commit comments

Comments
 (0)