biothings / discovery-app

The Data Discovery Engine project by the CD2H Data working-group
http://discovery.biothings.io
Apache License 2.0
4 stars 9 forks source link

Set max height for description display on dataset detail page #263

Open newgene opened 2 months ago

newgene commented 2 months ago

Sometime a dataset description can be long, like this one:

https://discovery.biothings.io/dataset/9323c8bd4c4244c3

It would be better if we can collapse the description container a bit with a max height, and allow click "more" to view the full description text.

Not sure if it's easy to set, but setting a max of 10 lines as the default view seems reasonable.