Skip to content

[Fix] Constrain event card title to 2 lines with ellipsis on mobile#473

Closed
lb1192176991-lab wants to merge 1 commit into
devpathindcommunity-india:masterfrom
lb1192176991-lab:fix/event-card-title-overflow-466
Closed

[Fix] Constrain event card title to 2 lines with ellipsis on mobile#473
lb1192176991-lab wants to merge 1 commit into
devpathindcommunity-india:masterfrom
lb1192176991-lab:fix/event-card-title-overflow-466

Conversation

@lb1192176991-lab
Copy link
Copy Markdown

@lb1192176991-lab lb1192176991-lab commented Jun 1, 2026

What

Constrains the event card title to a maximum of 2 lines with text-overflow ellipsis on mobile and small screens. Long event titles no longer break the card layout or overflow outside boundaries.

Why

When an event has an exceptionally long title, it breaks the layout of the Event Card on mobile screens, causing text to overflow outside the card boundaries.

Testing

  • Applied display: -webkit-box with -webkit-line-clamp: 2 to the .eventTitle class
  • Added overflow: hidden, text-overflow: ellipsis, and word-break: break-word for cross-browser safety
  • Existing layout and animations remain unchanged

Fixes #466

Prevents long event titles from overflowing card boundaries.
Applies line-clamp-2 via CSS with text-overflow: ellipsis.
@Aditya948351 Aditya948351 self-requested a review June 2, 2026 06:52
Copy link
Copy Markdown
Collaborator

@Aditya948351 Aditya948351 left a comment

Choose a reason for hiding this comment

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

LGTM! Approved. Great work on this.

@Aditya948351 Aditya948351 added gssoc26 This is a official GirlScript Summer of Code label. type:bug level:beginner Beginner level issues labels Jun 2, 2026
@Aditya948351
Copy link
Copy Markdown
Collaborator

⚠️ Warning: Thank you for your interest in contributing! However, we are closing this PR because you submitted it directly without first being assigned to the issue. This bypasses our contributing guidelines and makes it difficult to manage tasks fairly. Please comment on issues to request assignment and wait for maintainer approval before opening Pull Requests in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 This is a official GirlScript Summer of Code label. level:beginner Beginner level issues type:bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Fix Text Overflow in Long Event Titles on Mobile

2 participants