Skip to content

feat: Add creator card subtitle clamp helper - #569

Merged
Chucks1093 merged 1 commit into
accesslayerorg:devfrom
Uche44:feat/card-subtitle-helper
Jul 25, 2026
Merged

feat: Add creator card subtitle clamp helper#569
Chucks1093 merged 1 commit into
accesslayerorg:devfrom
Uche44:feat/card-subtitle-helper

Conversation

@Uche44

@Uche44 Uche44 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Added creatorCardSubtitleClampClass helper function and DEFAULT_CREATOR_CARD_SUBTITLE_MAX_LINES constant in lineClamp.utils.ts.

  • Applied creatorCardSubtitleClampClass to TrendingCreatorCard.tsx description paragraph for consistent subtitle line clamping.

  • Updated CreatorBio.tsx to use creatorCardSubtitleClampClass when clamping card variant bios.

  • Added unit test suite in lineClamp.utils.test.ts covering default line count, custom line counts, out-of-bounds capping, and invalid inputs.

  • Updated TrendingCreatorCard.integration.test.tsx with an integration test verifying that the subtitle line-clamp utility class is applied to card description elements.

  • Closes Add creator card subtitle clamp helper #205

Testing

  • pnpm lint
  • pnpm build

Checklist

  • Linked issue or backlog item
  • Scope is limited to the stated change
  • Updated docs if behavior or setup changed
  • [ x] Added screenshots for UI changes when relevant

Test screenshots
image

image

@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@Uche44 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 merged commit ac32987 into accesslayerorg:dev Jul 25, 2026
1 check 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.

Add creator card subtitle clamp helper

2 participants