Skip to content

Text overflows the panel when images shrink in Expanding Cards layout #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Vaisujaiswal opened this issue Dec 17, 2024 · 1 comment
Closed

Comments

@Vaisujaiswal
Copy link

Issue Title:

Text overflows the panel when images shrink in the Expanding Cards layout

Description:

When the panels shrink in the Expanding Cards layout, the text (h3) spills out of the image boundaries instead of remaining fixed within the panel.

Screenshots:

Screenshot 2024-12-17 194936

Expected Behavior:

The h3 text should remain fully contained within the panel boundaries, regardless of its size.

Actual Behavior:

The h3 text overflows outside of the panel, becoming misaligned with the shrinking panel layout.

Proposed Solution:

.panel {
  overflow: hidden; 
}

.panel h3 {
  white-space: nowrap; 
  text-overflow: ellipsis;
  overflow: hidden; 
  position: absolute;
  bottom: 10px;
  left: 10px;
  margin: 0;
}
@solygambas
Copy link
Owner

solygambas commented Dec 17, 2024

Thank you, @vaishnavi4277 🥇

The issue of text overflowing the panel in the Expanding Cards layout has been resolved. The application of the CSS property background-size: cover to the panel ensures the title displays correctly within the layout, maintaining its alignment and visibility even when the panel height changes.

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

No branches or pull requests

2 participants