Truncate analytics dashboard descriptions on the listing
Background
The following discussion from !134638 (merged) should be addressed:
-
@elwyn-gitlab started a discussion: (+2 comments) question (non-blocking): do we want to enforce any max length on this? Technically the yml will happily save whatever gets entered, but I wonder if we might want to prevent someone entering an essay in here to avoid display issues
Problem to solve
When description is very very large, the dashboards list starts to look unweildly
Proposed solution
Truncate the text if it is large
Implementation plan
- Wrap description with
gl-truncate-text
component - Handle click event issues due to truncate "Show more" button being inside of clickable list dashboard item
- Tests
Edited by Elwyn Benson