[LOW] Long unbroken paste title causes double horizontal scrollbar at mobile width (375px) #142
Notifications
Total Time Spent: 1 hour 15 minutes
fen
1 hour 15 minutes
No due date set.
Dependencies
No dependencies set.
Reference: poslop/palette#142
Reference in New Issue
Block a user
A paste title of >120 chars without break opportunities renders an internal horizontal scrollbar inside the title card AND a page-level horizontal scrollbar at 375px viewport (topbar also doesn't collapse). Missing overflow-wrap:anywhere on the title element.
Repro
Found during exploratory security/bug pass on palette-dev (2026-09-09). Reporting only, no fix attached.
Fix proposal (trivial CSS): add overflow-wrap:anywhere / word-break:break-word to the paste title h1 (and clamp to two lines with -webkit-line-clamp) so long unbroken titles wrap instead of opening a second horizontal scrollbar.
Fix implemented in PR #162 (branch fix-142 -> dev): word-break: normal; overflow-wrap: anywhere on .paste-title-bar h1. Verified rendered at 375x812 in dark + light presets: no horizontal scroll with 300-char unbroken title; normal title unchanged. Stopping here for QA.