Skip to content

[UI] Improve blog card title truncation and spacing#7538

Open
Xynash wants to merge 3 commits intolayer5io:masterfrom
Xynash:fix/blog-card-ui-cleanup
Open

[UI] Improve blog card title truncation and spacing#7538
Xynash wants to merge 3 commits intolayer5io:masterfrom
Xynash:fix/blog-card-ui-cleanup

Conversation

@Xynash
Copy link
Copy Markdown
Contributor

@Xynash Xynash commented Mar 22, 2026

Description
This PR fixes #7501.

I have updated the blog/resource card styles to ensure a consistent and clean layout across the site.

Changes:

  • Title Truncation
  • Title Spacing: Reduced horizontal padding to 1rem for the title line using negative margins, while keeping the rest of the card content at 2rem.
  • Byline/Date: Forced the author and date byline to stay on a single line with an ellipsis to prevent wrapping.
  • Bottom Spacing

Notes for Reviewers
I've manually verified the CSS logic. Since my local setup is having a conflict with the sharp library . I'll be doing the final visual verification using the Netlify deploy preview as soon as the build finishes.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Ansh Sharma <anshsharma161105@gmail.com>
@l5io
Copy link
Copy Markdown
Member

l5io commented Mar 22, 2026

🚀 Preview for commit aeb08e2 at: https://69bfce1d215bcc8272afcc91--layer5.netlify.app

@l5io
Copy link
Copy Markdown
Member

l5io commented Mar 22, 2026

🚀 Preview for commit 7bfeaac at: https://69bfd7adb640cf731812448a--layer5.netlify.app

@Bhumikagarggg
Copy link
Copy Markdown
Contributor

@Xynash Thank you for your contribution! Let's discuss this during the website call tomorrow at 5:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would 🙂

Copy link
Copy Markdown
Contributor

@Siddhi-sahu Siddhi-sahu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hiii @Xynash, can you please attach before and after screenshots? because I don't see the intended change in netlify preview.

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.

Ui: Improve blog card title/byline truncation and spacing

4 participants