mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
The api-tokens mobile no-overflow spec walks every descendant of the mobile card-list and asserts `scrollWidth <= clientWidth + 1`. The v1.4.19 fix wrapped long token names / usernames / permissions in a `<TruncatedCell>` (Tailwind `truncate` ⇒ `overflow:hidden + text-overflow:ellipsis + white-space:nowrap`), which by design keeps `clientWidth` clamped to the parent column while `scrollWidth` reflects the full text — exactly the case the assertion was tripping on. Skip elements whose computed `text-overflow: ellipsis` and clamped `overflow-x` show they are intentionally truncating. The page-level `document.documentElement.scrollWidth <= innerWidth + 1` assertion remains the authoritative no-scrollbar guard, so the regression intent is preserved without false-positives on the truncate helper. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>