Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple resource tags #197

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AristurtleDev
Copy link
Contributor

If a resource listed has more than three tags, then the tags wrap around and can get crowded.

Here is an example, with 7 tags

image

This PR adds logic to the resource.njk template to

  • When a resource contains more than 3 tags, a 4th element is displayed with just the additional number of tags (e.g. if a resource has 4 tags, the element will say "+1"
  • When the 4th element is hovered, a tool tip is enabled that lists the additional tags

Here is a video example of this in action

tooltips.mp4

This adds a tool tip pop up that contains the additional tags on hover when there are more than 3 tags for a resource.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant