QTable: Using wrap-cells with sortable columns breaks header row #16258
Replies: 3 comments 1 reply
-
I think It does what is documented, what you can do is add a |
Beta Was this translation helpful? Give feedback.
-
That seems to do the trick, though I have to admin that I don't fully understand it. Is there no way to make the header automatically as wide as necessary to fit the header content incl. the sort arrows? |
Beta Was this translation helpful? Give feedback.
-
I am going to also mention, why when using the headerClass:'no-wrap' it ignores it, and wraps the sort button to the next line? |
Beta Was this translation helpful? Give feedback.
-
What happened?
I'm using the
QTable
component with three columns:As column 3 may contain long text, I added the
wrap-cells
attribute to the table. Now, the sort arrows in the table header row seem to get wrapped as well, so that the header row "breaks" as in the following screenshot.What did you expect to happen?
I expected the table header row and the sort arrows to be on one level. If I remove the
wrap-cells
attribute, then the header row looks "fine". Maybe I'm missing something?Reproduction URL
https://stackblitz.com/edit/quasarframework-4zyk8n?file=src%2Fpages%2FIndexPage.vue
How to reproduce?
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar)
Platforms/Browsers
Chrome
Quasar info output
Relevant log output
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions