Table Actions Fixed Width
Is there any chance for table action like edit/delete to be fixed width if we have more than column the action should be fixed not need to go in the end of the table to click the actions?
32 Replies
too long contents?
Yea exactly
I have to many columns that need to be in the table
Wouldn't using
->wrap()
in the columns be enough to fix the issue?No, he wants fixed delete/actions for when there are tons of columns so the actionable part is always there. There was a PR/Work on this going on somewhere
Maybe not exactly what you expect, but you can display in the first column then no need to scroll https://filamentphp.com/docs/3.x/tables/actions#positioning-row-actions-before-columns
@toeknee, like this?
1- create a custom theme:
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
2 - add
Yep, I'd probably condition the table thought with an extra class .sticky-last-column. But seems to be the one I'd say.
I saw it but not excatly what I want
Is there another way not to create a custom theme
I don't know...
Thanks
Why not just put the actions at the front? π€
The design is not tha well in the front if we look in the UX side
I see. Well you could put those actions inside a group and only show an icon (assuming you have multiple actions) π
But i agree actions in the front seem unconventional...was just suggestion it to show other options βοΈ
No problem thanks for your contribution I really appreciate it
sir @LeandroFerreira problem on
.fi-ta td:last-child {
@apply sticky right-0 bg-white dark:bg-gray-900
}
see the attachment
.fi-ta td:last-child {
@apply sticky right-0 bg-white dark:bg-gray-900 z-10;
}
i add z-index, and result is create another problem
try this
it is based on adams code
https://discord.com/channels/883083792112300104/883084832387760148/1176631687782858782
Feel free to add to glow. π I wasnβt about to go back through the showcase to find it. π
LITERALLY just finished scheduling it π
also I always copy it like this, with the url, so I wont losing it
I guess glow is a good idea π
Nice. And thank you for the attribution.
always π
thank you sir @Lara Zeus and sir @awcodes
it works good on without ActionsGroup, but with ActionsGroup, it looks like this:
(please see the attachment)
Yea. I think it could be figured out. Never needed groups in what I was doing. Itβs just a matter of getting the css selectors right.
oh okay. can you help sir to figure out that problem? thank you so much.
At the moment, no, sorry. Iβm on my phone.
oh okay sir. that's fine. maybe later. thank you
Just go through the html in dev tools and try some things to see if you can get it to work the way you need it. Thatβs all I did.
Once you figure it out in devtools then you can apply it in your css.
And I get that css is difficult but once you get a grasp on selectors it gets easier.
I'll try sir. thank you
hi sir @awcodes . sorry but, still can't figure it out.
play around with the
z-index
for the button or the menuhmm let's see