Skip to content

Bug: Text Overflow on Plugin Cards with Long Descriptions #1980

Description

@sahare-mayur-0071

Description
When a plugin has a very long description in its metadata.json, the plugin card on the catalogue page does not truncate the text properly. This causes the card to stretch vertically and breaks the grid layout on smaller screens.

Steps to Reproduce

  1. Edit a plugin's metadata.json (e.g., in plugins/nmap/) to have a 500-word description.
  2. Go to the Plugin Catalogue page (/plugins) in the frontend.
  3. Observe the card overflowing its container and breaking alignment.

Expected Behavior
The plugin description should be truncated to a maximum of 3 lines with an ellipsis (...) to ensure all cards maintain a uniform height.

Implementation Hints

  • Frontend: Since the project uses Tailwind CSS, open the PluginCard component and add the Tailwind classes line-clamp-3 and text-ellipsis to the description's <p> tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions