Replies: 1 comment 2 replies
-
@luanfreitasdev do you recommend just to make a custom theme for this or is this something you would want to fix in the code. For context, I am using Firefox (not sure if it is affected in other browsers) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Livewire PowerGrid version
v6.5.4
Livewire version
v3.6.4
Laravel version
v12.24.0
Which PHP version are you using?
PHP 8.4
Which Theme are you using?
Tailwind
Have you published the resource files and customized them? (php artisan vendor:publish)
No
What is the problem?
When using the default theme, I would like to be able to set the max width of the column. I tried to do that using the bodyAttribute like:
However, the column does not resize to max-w-80 and instead it just wraps the text to a smaller width. This is because the parent
td
element has a class ofwhitespace-nowrap
which causes the column to shrink rather than go to the max of 80.With whitespace-nowrap:

Without whitespace-nowrap:

Code snippets
Make a column and apply bodyAttributes like:
Use long entries in this field and check the table in the table in the browser.
How do you expect it to work?
I expect to be able to set the max width in customizable manner as some columns we should have the control to wrap the text and set the max width.
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions