laravel-views
laravel-views copied to clipboard
Add a min height?

I think you should add a min-h-screen to the components
Hi @elfeffe I saw your PR, I'll merge it
Hey guys - I can understand why you want a min height, but now this causes other issues. It creates a huge gap below the views. Eg. try creating two views one after another when there are minimal rows and there will be a huge gap between them.
Maybe there's another way to fix filter dropdown? Or at least have an easy way to remove the min height?
Paste some screenshot please. I will check it.
The height of the gap is relative to the screen height of course.
In the blade file, I just have two components, one after another:
<livewire:forms.project-table-view />
<livewire:forms.project-table-view />
Thanks @df999 for raising this, yeah the min-height
was to avoid the filter cutting off but you are right, there should be a better way to fix this, sorry for this issue I should have tested it this way, I will add this test scenario before releasing a new version
Okay thanks. Perhaps there's a z-index solution to have it on top of the content below.
Hi @elfeffe what version of the package and browser did you use to see this issue? by any chance are you using your own tailwindcss file? if that so, are you including laravel views
path to your tailwind purge settings?
@Gustavinho Are you sure the question is for me? I'm using Latest Chrome and Firefox, with default TailwindCSS, local, not from CDN. The package, I was using the latest stable version.
Yeah @elfeffe, thanks, I'm trying to fix the original issue but I haven't been able to replicate it again and I just wanted to be sure that I'm using the correct environment to replicate it
I've tested it with
- LaravelViews 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0
- Local Tailwindcss build with/without purging LaravelViews files,
- LaravelViews default tailwindcss file
- Chrome, Firefox
This is how it looks
And this is how I'm rendering the table view
<body class="bg-gray-100">
<div class="bg-white">
<livewire:my-users-table-view />
</div>
</body>
Not sure if I'm missing something else to see this behavior, do you have something different?
@df999 is right about space but it is something else I think.
I've started using this after this update so I don't know what has changed what.
Above image is toolbar.blade.php from component/toolbar .
and issue is :
line 11 : <div class="flex-1">
line 16 : <div class="flex space-x-1 flex-1 justify-end items-center mb-4">
Look above SS this two line are printing when there is no search and filter enabled.
I haven't forked any project yet otherwise I'll submit request. Maybe another time. Thanks