Grid table, align stack component to bottom.
Hi, I am trying to align the product title with the price at the bottom of the "card", but it is not working. I'm not familiar with tailwindcss. How do I change my code to stick the stack with the product title and price at the bottom, regardless of image size? (see attachment).
Solution:Jump to solution
have found an almost complete solution 🙂
```php
Tables\Columns\Layout\Stack::make([
Tables\Columns\SpatieMediaLibraryImageColumn::make('image_link')
->collection(config('project.product_media_collections.images'))...
11 Replies
Did not help.
Filament demo displayed fixed image (https://github.com/filamentphp/demo/blob/main/app/Filament/Resources/Blog/LinkResource.php#L78) maybe this may help
The demo probably had a fixed image size, I had this ->size('100%') before.
what if you apply like the link does
->height('100%')->width('100%')
still the same or not
w8.. sorry it doesn't make sense..
let me try to replicate and will get you back
Below are my code
And this is result.. looks same without doing anything
Change it like this, and result.. I think
->size('auto')
is breaking something (which does for me)
I have also tried this approach, but the problem is the scaling of the image. I have no idea how to fix it 🙂
just put fixed heigh
->height('100px')
like I did?Solution
have found an almost complete solution 🙂
done by object-scale-down, but without rounding corners.
or even better 'object-none'