dart-lang / dart-lang/pub-dev

Support recommended description lengths on pub.dev home page

Open
#6,514 1 comment 1 reaction 0 assignees View on GitHub
Type: enhancement
Dominant language
Dart
Stars
944
Forks
184
Avg merge
1d 15h
Merged PRs (30d)
12

Description

We dock points from packages that have a description that is outside 60 < n < 180 characters.
![image](https://user-images.githubusercontent.com/2319867/226740751-73f63e44-439e-4f86-80a3-75f13209a982.png)

But our homepage tiles are optimized for descriptions that are < 60 characters:
![image](https://user-images.githubusercontent.com/2319867/226740850-0c38b5aa-8a37-4b14-99cd-a20c7bcd5a62.png)

The result is that the tiles often maddeningly omit the keywords that describe the package function:


We need to do a better job in managing longer titles. A couple of ideas:

- Add an ellipsis with a tooltip, so you can hover over and see more information
- Adjust the text size or tile dimensions so that it can show the recommended text length

I'm also open to a different solution outside of pub.dev (e.g. introducing a `short_description` field in YAML that we use for these settings, or changing the recommended description length to match the pub.dev tile size).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.