Skip to content

Conversation

@smartdev09
Copy link
Contributor

@smartdev09 smartdev09 commented Dec 23, 2025

Description
Summary
Fixes the visual layout issue where card content (Slack icon, expansion icon, and "Read More" button) was overflowing beyond the card boundaries on the /learn/workshops page.

This PR fixes #7278

Notes for Reviewers

CSS Changes (WorkshopsGrid.style.js):

  • Added position: relative to .workshop-grid-card to establish positioning context
  • Changed .btn-and-status from top: 92% to bottom: 0 for reliable bottom positioning
  • Replaced nested absolute positioning with simple flexbox layout
  • Added proper alignment with align-items: center and spacing with gap

HTML Restructure (index.js):

  • Grouped left-side icons (Slack + expansion) into .left-icons container
  • Simplified markup by removing unnecessary wrapper divs (.linkAndReadBtns, .expand, .externalLink)
  • HTML order now matches visual order for better accessibility

Screenshots:

card_layout

Signed commits

  • [✅] Yes, I signed my commits.

Signed-off-by: Muhammad Usman <usiddique09@gmail.com>
@l5io
Copy link
Contributor

l5io commented Dec 23, 2025

🚀 Preview for commit 3cbe79c at: https://694aab5fe0c782fdd395771f--layer5.netlify.app

@saurabhraghuvanshii
Copy link
Member

Thanks @smartdev09 lgtm!!

@saurabhraghuvanshii saurabhraghuvanshii merged commit b4f302a into layer5io:master Dec 23, 2025
4 checks passed
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.

Card layout overflow: icons and “Read More” button exceed card bounds

3 participants