- Properly truncate allthethings - Better expand/contract functionality - Give appropriate real estate in tables to text blobs; prevent tall, thin text columns - Prevent garbage white space --- - Column collapsing - Better inline editing (no popover) - Live updating data
As a Builder, I would like to be able to display File/URL/Rich Text fields with a truncate option like is currently available on Paragraph Text fields.
Eg. copyoftestno41loopmonitoringofemergencystopsofthrustersandpropellersmaintdoc1943331a1.txt or http://www.copyoftestno41loopmonitoringofemergency... does not allow for custom table widths to force wrap or truncate the URL for display. (Like is available for paragraph text.)
I'm sorry, Craig. It has been awhile since I played in the world of CSS. I see you have limited your CSS to a specific view using CSS. You can also limit your CSS to a specific scene as well. For example:
Nice! That would have been my suggestion. I don't think we can restrict CSS to a scene unless we use JavaScript to apply the CSS upon scene render, which is a little more complicated to explain. But we can definitely restrict it to a view like you have done using CSS only. In my experience, restricting the CSS to a view is much easier.
- EDIT:
I was wrong. You can limit to a specific scene by using the Element ID. For example: #kn-scene_94
Until Knack gets on this, I created a custom solution to this problem in CSS that works for tables:
Note: This does not truncate the text. Instead it creates a scroll-bar inside the RichText field's cell which prevents that cell from getting too large. All text is still visible if you scroll.
CSS Code Tips:
Replace the field_id (in my example it is field_210) with the field id of your RichText field.
Customize Max-Height to however large you want your row size to get. Mine is set pretty large intentionally. Feel free to shrink it down.
If you want to limit the width as well then set Max-Width to your desired size.
Just checking back here again. Providing a truncated view of RTF fields is a VERY important feature if Knack is to keep up to date with just about any other modern app out there. Please address ASAP.
Other options with this feature request would of course be a variable for number of chars to trigger truncation, and perhaps a message / link to display if truncation occurs.