Description
In the Visual Editor function selection dialog, on the list of suggested functions or searched functions, when a function description is longer than a given limit:
- trim to 2 lines and show "Read more" link
- on clicking "Read more", show the full description and change link to "Read less"
- on clicking "Read less", go back to 2 line restriction
This is applicable to all places where description appears:
- FunctionSelector screen (per function in the list)
- FunctionInputSetup screen (for the function description on top)
As suggested in the technical specs document:
Could we use line-clamp instead? https://caniuse.com/?search=line%20clamp
N characters can be unreliable across languages. eg. some letters are larger than others, and we don't know how they will be rendered
Devices and Design (URLs or screenshots)
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist





