From 037ebd3b18a321cfd88d1bc70f1e4d2d9c29d399 Mon Sep 17 00:00:00 2001 From: Luan Freitas <33601626+luanfreitasdev@users.noreply.github.com> Date: Sat, 20 Jan 2024 09:56:25 -0300 Subject: [PATCH] Fix toggle columns style (#1341) * Fix column hidden class * Fix column hidden class * Fix column hidden class --- .../tailwind/header/export.blade.php | 20 +++---- .../tailwind/header/toggle-columns.blade.php | 54 +++++++++++-------- 2 files changed, 42 insertions(+), 32 deletions(-) diff --git a/resources/views/components/frameworks/tailwind/header/export.blade.php b/resources/views/components/frameworks/tailwind/header/export.blade.php index 9d260dd4..c8325493 100644 --- a/resources/views/components/frameworks/tailwind/header/export.blade.php +++ b/resources/views/components/frameworks/tailwind/header/export.blade.php @@ -14,16 +14,18 @@ class="pg-btn-white dark:ring-pg-primary-600 dark:border-pg-primary-600 dark:hov
- @if (in_array('xlsx', data_get($setUp, 'exportable.type')))
@lang('XLSX') diff --git a/resources/views/components/frameworks/tailwind/header/toggle-columns.blade.php b/resources/views/components/frameworks/tailwind/header/toggle-columns.blade.php index 239e3cad..7e910b8f 100644 --- a/resources/views/components/frameworks/tailwind/header/toggle-columns.blade.php +++ b/resources/views/components/frameworks/tailwind/header/toggle-columns.blade.php @@ -16,31 +16,39 @@ class="pg-btn-white dark:ring-pg-primary-600 dark:border-pg-primary-600 dark:hov
- @foreach ($this->visibleColumns as $column) -
'opacity-40 bg-pg-primary-300 dark:bg-pg-primary-800', ' cursor-pointer flex justify-start block px-4 py-2 text-pg-primary-800 hover:bg-pg-primary-50 hover:text-black-200 dark:text-pg-primary-200 dark:hover:bg-gray-900 dark:hover:bg-pg-primary-700']) - > - @if (!data_get($column, 'hidden')) - - @else - - @endif -
- {!! data_get($column, 'title') !!} +
+ @foreach ($this->visibleColumns as $column) +
+ @if (!data_get($column, 'hidden')) + + @else + + @endif +
+ {!! data_get($column, 'title') !!} +
-
- @endforeach + @endforeach +
@endif