Skip to content

Forms list: wrap long titles instead of cutting them off on phones - #305

Merged
Musiker15 merged 2 commits into
mainfrom
fix/mobile-form-title-ellipsis
Oct 29, 2026
Merged

Musiker15 merged 2 commits into
mainfrom
fix/mobile-form-title-ellipsis

Conversation

@Musiker15

Copy link
Copy Markdown
Member

Problem

In the forms list on a phone, a long form title ran under the sticky action column and was cut off without an ellipsis. The link was inline-flex w-fit, so the title column grew as wide as the whole text.

Fix

  • The title cell wraps at 14rem (the column's minimum width) on small screens and at 24rem from sm up.
  • overflow-wrap:anywhere on the link and on the plain title, so a long word doesn't stretch the column again.
  • I chose wrapping over an ellipsis on purpose: the full title stays readable without a tooltip, and nothing is hidden (WCAG 1.4.10).

Checked

  • pnpm --filter @msk-forms/web typecheck, eslint and prettier on the file.
  • Not checked in a browser yet, the dashboard needs a Discord login. Worth a look on a phone after the deploy: forms list with a long title, at 375 px.

The title link was inline-flex with w-fit, so a long title made the
column as wide as the whole text. On a phone the end of it ran under the
sticky action column and was cut off without any hint.

The title now wraps at the column's minimum width on small screens and
at 24rem from sm up, with overflow-wrap:anywhere for long words, so the
whole title stays readable instead of being truncated.
@Musiker15
Musiker15 merged commit 5ad568a into main Oct 29, 2026
4 checks passed
@Musiker15
Musiker15 deleted the fix/mobile-form-title-ellipsis branch October 29, 2026 06:32
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