From 7417fea22375f779622cfcb7b19b7c8cd7fee0c4 Mon Sep 17 00:00:00 2001 From: Edwin Heij Date: Sat, 31 Jul 2021 23:03:49 +0200 Subject: [PATCH 1/2] Fix sort direction icon for bootstrap --- resources/views/bootstrap/50/table.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/bootstrap/50/table.blade.php b/resources/views/bootstrap/50/table.blade.php index 32801013..dd9c460a 100644 --- a/resources/views/bootstrap/50/table.blade.php +++ b/resources/views/bootstrap/50/table.blade.php @@ -37,7 +37,7 @@ class="table table-bordered table-hover table-striped table-checkable table-high @if ($sortField !== $column->field) {!! $sortIcon !!} - @elseif ($sortDirection) + @elseif ($sortDirection == 'desc') {!! $sortAscIcon !!} @else {!! $sortDescIcon !!} From 2bc178c04e28d8417db2e40d437aa6209dae544c Mon Sep 17 00:00:00 2001 From: Edwin Heij Date: Sat, 31 Jul 2021 23:04:15 +0200 Subject: [PATCH 2/2] Fix sort direction icon for tailwind --- resources/views/tailwind/2/table.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/tailwind/2/table.blade.php b/resources/views/tailwind/2/table.blade.php index b4622d6b..13600f0b 100644 --- a/resources/views/tailwind/2/table.blade.php +++ b/resources/views/tailwind/2/table.blade.php @@ -31,7 +31,7 @@ class="px-2 pr-4 py-3 text-left text-xs font-medium text-gray-500 uppercase trac @if ($sortField !== $column->field) {!! $sortIcon !!} - @elseif ($sortDirection) + @elseif ($sortDirection == 'desc') {!! $sortAscIcon !!} @else {!! $sortDescIcon !!}