-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix double table border when no sorting or selection is enabled #7772
Conversation
PR Summary
|
IIRC, |
fyi, its from one of my PR to solve an issue #5977 |
Can we replace |
@danharrin, that's what I used |
@zepfietje is that an option here? |
Thanks @wychoong for the reference! Yes, we could apply the "hidden" attribute, either via an if statement or via I can also change the PR, let me know which option do you prefer, Examples: <div
@class([
'flex items-center gap-4 gap-x-6 bg-gray-50 px-4 dark:bg-white/5 sm:px-6',
'hidden' => (! $isSelectionEnabled) && (! count($sortableColumns)),
])
{{-- x-bind:hidden="{{ (! $isSelectionEnabled) && (! count($sortableColumns)) }}" --}}
{{-- x-bind:hidden="! (@js($isSelectionEnabled) || @js(count($sortableColumns)))" --}}
@if (! $isSelectionEnabled && ! count($sortableColumns))
hidden
@endif
> In any case I see a lot of |
It's hard for me to follow the exact issue and checking out the diff, but I guess simply using that Blade |
|
|
# Conflicts: # packages/tables/resources/views/index.blade.php
Let's see if this presents any issues in the next release 👍 |
Fixes #7632
This is a follow up for #7636. It changes the top part of the table to work with the parent
divide-y
by removing the csshidden
class assignment when! $isSelectionEnabled
and! count($sortableColumns)
to an if-clause around the whole div.This is to hide the current double border within a grid table when you are not having selections enabled or any sortable columns.
As Dan already stated here, the
hidden
class assignment must be there for a reason. But I cannot find any. If the table has no bulk actions, sortable columns etc, the part of the table imHo will always be hidden?Before
After