With wrap ON, the paste codebody (and editor) now use overflow-wrap: anywhere + word-break: break-all with overflow-x: hidden, so long unbroken tokens are cut mid-word and wrapped and no horizontal scrolling is possible (verified at 1400x900 and 375x812).
The .code container and mobile .float also get overflow-x: hidden while wrap is on.
Mobile topbar tightened (gap/padding/nav link padding) so the topbar no longer overflows at 375px, which was the remaining source of document-level horizontal scroll.
Wrap OFF keeps white-space: pre with horizontal scroll on the code container, unchanged.
Verified with headless chromium against a local build: wrap ON token spans multiple rendered line boxes and document scrollWidth == clientWidth at both viewports; wrap OFF still scrolls horizontally.
Fixes #152.
- With wrap ON, the paste codebody (and editor) now use `overflow-wrap: anywhere` + `word-break: break-all` with `overflow-x: hidden`, so long unbroken tokens are cut mid-word and wrapped and no horizontal scrolling is possible (verified at 1400x900 and 375x812).
- The `.code` container and mobile `.float` also get `overflow-x: hidden` while wrap is on.
- Mobile topbar tightened (gap/padding/nav link padding) so the topbar no longer overflows at 375px, which was the remaining source of document-level horizontal scroll.
- Wrap OFF keeps `white-space: pre` with horizontal scroll on the code container, unchanged.
Verified with headless chromium against a local build: wrap ON token spans multiple rendered line boxes and document scrollWidth == clientWidth at both viewports; wrap OFF still scrolls horizontally.
- codebody/editor: overflow-wrap anywhere + word-break break-all + overflow-x hidden under html[data-wrap]
- code container and mobile .float also hidden overflow with wrap on
- topbar mobile: tighten gap/padding/nav link padding so nothing overflows at 375px
Fixes#152
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes #152.
overflow-wrap: anywhere+word-break: break-allwithoverflow-x: hidden, so long unbroken tokens are cut mid-word and wrapped and no horizontal scrolling is possible (verified at 1400x900 and 375x812)..codecontainer and mobile.floatalso getoverflow-x: hiddenwhile wrap is on.white-space: prewith horizontal scroll on the code container, unchanged.Verified with headless chromium against a local build: wrap ON token spans multiple rendered line boxes and document scrollWidth == clientWidth at both viewports; wrap OFF still scrolls horizontally.
1cd2e4e97ctob30d41b87d