From 1cb6c73b390c5c3741df4e92d59ab3690aa8ee64 Mon Sep 17 00:00:00 2001 From: luanfreitasdev Date: Thu, 23 May 2024 09:32:24 -0300 Subject: [PATCH] fix sorting icons --- resources/views/components/cols.blade.php | 13 +++++-------- src/Themes/Tailwind.php | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/resources/views/components/cols.blade.php b/resources/views/components/cols.blade.php index c89f3a34..86b12ea5 100644 --- a/resources/views/components/cols.blade.php +++ b/resources/views/components/cols.blade.php @@ -35,16 +35,13 @@ class="{{ data_get($theme, 'table.thClass') . ' ' . $column->headerClass }}" class="{{ data_get($theme, 'cols.divClass') }}" style="{{ data_get($theme, 'cols.divStyle') }}" > + {!! $column->title !!} + @if ($column->sortable) - - - - @else - + width="16" + /> @endif - {!! $column->title !!} diff --git a/src/Themes/Tailwind.php b/src/Themes/Tailwind.php index b976275d..bc6fe3d7 100644 --- a/src/Themes/Tailwind.php +++ b/src/Themes/Tailwind.php @@ -56,7 +56,7 @@ public function actions(): Actions public function cols(): Cols { return Theme::cols() - ->div('select-none space-x-1 flex flex-row-reverse justify-end items-center gap-2') + ->div('select-none flex items-center gap-2') ->clearFilter('', ''); }