Skip to content

Learning Resource tile descriptions get truncated after 78 characters #290

@michelle-purcell

Description

@michelle-purcell

Problem

On https://console.redhat.com/, Learning Resource tile/card descriptions get truncated after 78 characters and not 115 as stated in the contributing guide

  • Learning Resource cards need to fit a decent-sized meaningful description. There are at least 50 characters of white unused space.
  • A pop-up to display the full descriptions is needed, as per other Red Hat and IBM pages with cards and tiles.

Example

The Learning Resources contributor guide states that the description must be less than 114 characters:

Image

Impact

  • Poor user experience.
  • The truncated text disappears and is not visible on the console portal.
  • Takes a lot longer for writer to develop content for Learning Resources.

Steps to reproduce the problem

  1. Open the a yml file of a Quickstart or learning resource: For example: https://github.com/RedHatInsights/quickstarts/blob/main/docs/quickstarts/insights-assess-vulnerabilities/insights-assess-vulnerabilities.yml
  2. Add a description that's less than 115 characters:
    description: Monitor and analyze security on your RHEL system. Prioritize and remediate CVEs by deploying Ansible Playbooks.
  3. Follow the process to merge and push to staging.

Result:
The card description gets truncated after 78 characters, as follows:
Image

The truncation isn't consistent. Sometimes it happens after the 80th or 85th character. It depends on the size of the characters used in the description.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions