Skip to content

Clamp job listing role titles to 2 lines#260

Merged
JacobCoffee merged 1 commit intomainfrom
fix/clamp-long-card-descriptions
Apr 18, 2026
Merged

Clamp job listing role titles to 2 lines#260
JacobCoffee merged 1 commit intomainfrom
fix/clamp-long-card-descriptions

Conversation

@JacobCoffee
Copy link
Copy Markdown
Member

Summary

For sponsors whose listing text is prose without extractable "Title | URL" pairs (SerpApi, marimo, etc.), `parseRoles()` falls back to emitting the whole blob as a single pseudo-role. The title then overflowed the card with no truncation (shown previously as 12+ lines of body copy squished into a list-item slot).

Add `-webkit-line-clamp: 2` on `.role-title` with ellipsis. Normal short titles are a single line and are unaffected.

Test plan

  • Short titles (e.g. HRT — "Research Engineer") render unchanged on one line
  • Fallback prose titles (SerpApi, marimo) clip at 2 lines with ellipsis

When parseRoles() can't extract "Title | URL" pairs from a sponsor's
description (e.g. SerpApi, marimo whose descriptions are prose without
delimiters), it falls back to emitting the whole blob as a single
pseudo-role. The title then overflowed the card with no truncation.

Line-clamp the role title to 2 lines with ellipsis — normal short titles
are unaffected, prose blobs stop dominating the card.
@JacobCoffee JacobCoffee merged commit baa789f into main Apr 18, 2026
2 checks passed
@JacobCoffee JacobCoffee deleted the fix/clamp-long-card-descriptions branch April 18, 2026 05:40
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.

1 participant