Replies: 1 comment
-
Unfortunately, there's no built-in attribute in SQLPage's table component for wrapping headers yet. Definitely worth keeping that feature request open though - it's a common need! How to do it using custom cssThe good news is you can totally fix this with custom CSS right now. Just add this to your shell component: SELECT
'shell' AS component,
'Your Page Title' AS title,
'/assets/table-headers.css' AS css; Then create th {
white-space: normal;
word-wrap: break-word;
max-width: 150px;
vertical-align: top;
line-height: 1.3;
} This will wrap those long descriptive headers nicely while keeping your column data narrow - should solve both the wasted space and horizontal scrolling issues you're dealing with. You can adjust the |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi all. I was wondering if anyone has a solution to wrapping text in the table headers (the table component). My column values are quite a bit narrower than the header names, leading to a lot of wasted space and requiring horizontal scrolling to view all the columns and values. Ideally, the long column headers would be word wrapped; they are long as they need to be descriptive so I cannot really shorten them. Thanks for your help in advance!
Beta Was this translation helpful? Give feedback.
All reactions