row height expands even if word-wrap is unselected
row expands its height when a text column type has new lines inserted with [shift+return] and the cell format word-wrap is unselected. The row should expand only if the cell format has the word-wrap selected. This misbehavior started after upgrading to version 1.1.16
Explicit newlines (e.g. inserted with Shift+Enter) have always expanded rows (just as Google Sheets and Excel do). Word-wrapping affects whether long lines wrap. One thought was to have 3 values for word-wrapping: wrap lines, keep lines, collapse lines.
True. having 3 values for word-wrapping would solve this.
However, in Google sheets and Libreoffice calc new lines are inserted with Ctrl+Enter
Maybe this is what the OP is getting at, but it would be great to have a display option for not expanding row heights. Useful in cases above where a column contains embedded notes
Also mentioned here: https://community.getgrist.com/t/cell-height-inconsistency/2088
This seems a fairly simple improvement, and possibly a good first issue for a new contributor. I see two ways to address it. Currently, the one option for wrapping is this one:
The two options I see to enhance it are:
- Option 1. Have 3 choices for wrapping: "Clip lines", "Wrap lines", and "Keep text on one line". The last option is the new one, and it would ignore line-breaks.
- Option 2. Keep the wrapping options as today ("Clip lines" or "Wrap lines"), and add a new configuration option to set the max number of lines to show. It would be unset by default, but if set, text would be limited to the specified number of lines with "..." shown on the last line if anything didn't fit. (Implementation note: for supporting this when wrapping is on,
-webkit-line-clampproperty may help.) - Option 3. Same as option 2, but add this option at Table-widget level (rather than column level).
Feedback welcome!
Is it unfeasible to implement options 1 and 2 simultaneously? Both are great.
Here are the mocks https://www.figma.com/design/wcpetFt6aOKzTszcvPPWLQ/%5B05%2F24%5D-Grist-Design?node-id=4343-89047&t=RbJ86TZ0SHtnCr5c-1
@dsagal I've made the modifications on the mocks, should be ok 👍
Great, thank you! FYI, I edited some text directly in Figma.
Figma looks great! What is the timeline for this feature?
It's fallen behind some higher-priority items, but it's near the top of our queue again, so I'd expect it to get released within the next month or so.
This got released! See https://support.getgrist.com/newsletters/2025-08/#row-height-controls.