Skip to content

Ui: Improve blog card title/byline truncation and spacing #7501

@saurabhraghuvanshii

Description

@saurabhraghuvanshii

Description

Resource cards truncate key text (title) too aggressively and have inconsistent overflow/spacing behavior.

Expected Behavior

  1. Title horizontal spacing
    • Reduce left/right padding (or margin) to 1rem for the post-title line(s) only
    • Keep existing padding/margins for all other card content
  2. Title overflow
    • Allow post-title to wrap up to 2 lines
    • If overflow remains, apply ellipsis (…) after line 2
  3. Date/byline overflow
    • Keep date + byline on a single line
    • Apply ellipsis on overflow (no wrapping)
  4. Bottom spacing
    • Ensure “See also” never touches the bottom of the card
    • Maintain at least 1rem of bottom padding inside the card at all times

Screenshots

Environment:

  • Host OS:
  • Browser:

Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Join the Layer5 Community by submitting your community member form.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions