Skip to content
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

truncate long event description #13919

Merged
merged 4 commits into from
Oct 4, 2024

Conversation

sumitvekariya
Copy link
Contributor

Description

The event description had no text limitation and could have been too long. So now event description is limited to 230 characters, if longer than that it is truncated to 230 characters followed by ...

Related Issue

#13914

Copy link

netlify bot commented Sep 20, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit a1cb5f6
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/66ffd7ba48ddc40008a08c37
😎 Deploy Preview https://deploy-preview-13919--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 48 (🔴 down 5 from production)
Accessibility: 93 (no change from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

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

Hey @sumitvekariya! Thanks for the PR... Apologies if the issue may have been misleading, but I think we can get away with simply restricting the line count here (instead of word count), which we can use a simply TailwindCSS class for this: line-clamp-x... by default this has up to line-clamp-6, so I would suggest this )(just chatted with @konopkja as well who is in agreement)

Left a suggestion for how we can simplify to use this approach

Screenshot2024_09_23_090716

src/components/EventCard.tsx Outdated Show resolved Hide resolved
src/components/EventCard.tsx Outdated Show resolved Hide resolved
@corwintines corwintines changed the title fix: long event description should be 230 characters max truncate long event description Oct 4, 2024
Copy link
Member

@corwintines corwintines left a comment

Choose a reason for hiding this comment

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

Thanks @sumitvekariya!

@corwintines corwintines self-assigned this Oct 4, 2024
@corwintines corwintines merged commit 72d52b8 into ethereum:dev Oct 4, 2024
5 of 6 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.

3 participants