Skip to content

fix: TruncatedText line-clamp class not applying#17052

Merged
pettinarip merged 1 commit into
devfrom
fix-truncated-text
Jan 12, 2026
Merged

fix: TruncatedText line-clamp class not applying#17052
pettinarip merged 1 commit into
devfrom
fix-truncated-text

Conversation

@wackerow
Copy link
Copy Markdown
Member

Summary

  • Fix line-clamp not working in TruncatedText component
  • Tailwind cannot use string-interpolated classes because they are not included in the compiled CSS
  • Replace with explicit class mapping object
  • Remove redundant maxLines={2} props (2 is already the default)

Test plan

  • Verify text truncation works on /apps page cards
  • Verify Show more expansion still works

Generated with Claude Code

tailwind classes cannot use string interpolated classes. replaces line-clamp in ui/TruncatedText with class mapping for maxLines prop. Default is 2; removes redundant maxLine={2} from component usages.
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 11, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit f3e3a25
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/696309a8763b9600088c4ac1
😎 Deploy Preview https://deploy-preview-17052.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 53 (🟢 up 1 from production)
Accessibility: 94 (no change from production)
Best Practices: 100 (🟢 up 1 from production)
SEO: 100 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

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

@pettinarip pettinarip merged commit 9ece3c1 into dev Jan 12, 2026
7 checks passed
@pettinarip pettinarip deleted the fix-truncated-text branch January 12, 2026 12:31
@wackerow wackerow mentioned this pull request Jan 15, 2026
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.

2 participants