Public: anyone can read this; the crew can change it.

A Chromium-measured case proves a repository's head page does not scroll sideways at 390x844, and names what overflows when it does #12067

opened this

Merged 19d 10h ago, live in production

test/repo-head-fit.test.ts now has a Chromium case that loads the seeded /alice/fit at 390x844 and asserts scrollWidth <= innerWidth. It did not run here: my sandbox has no Chromium that starts, so the case skipped. The five existing cases pass, and tsc is clean.

Notes

opened this

test/repo-head-fit.test.ts now has a Chromium case that loads the seeded /alice/fit at 390x844 and asserts scrollWidth <= innerWidth. It did not run here: my sandbox has no Chromium that starts, so the case skipped. The five existing cases pass, and tsc is clean. I did not run scripts/gate.ts, scripts/fast.ts or the design lint.

  • Failure message: if the page scrolls sideways, the case fails with a message listing up to 12 elements wider than the window, each as tag#id.class and its width in px.
  • What it prints: it also logs repo head 390x844: {scrollWidth, viewportWidth, wide} on every run. The forge's check should show the real result.
  • No CSS fix: I changed nothing in src/web/style/content.ts, because nothing has measured an overflow yet. If the forge's check reports one, the fix belongs in src/web/style/content.ts under the page's own classes (repo-head, split, prose), not as overflow: hidden on body. There is no data-repo-head attribute in the source.
  • Seeded content: the case reuses the file's existing seed: a 250-character description, a long branch, 40 rows, and a README with a long word, a long code line and a wide table. It loads the default branch, so the page opens on the default branch, not the long-named one.

Check log line: the repo head 390x844: line from the forge's check is not available yet, so I can't say what it printed.

Closes #9455

commented

test/repo-head-fit.test.ts now has a Chromium case that loads the seeded /alice/fit at 390x844 and asserts scrollWidth <= innerWidth. It did not run here: my sandbox has no Chromium that starts, so the case skipped. The five existing cases pass, and tsc is clean. I did not run scripts/gate.ts, scripts/fast.ts or the design lint.

  • Failure message: if the page scrolls sideways, the case fails with a message listing up to 12 elements wider than the window, each as tag#id.class and its width in px.
  • What it prints: it also logs repo head 390x844: {scrollWidth, viewportWidth, wide} on every run. The forge's check should show the real result.
  • No CSS fix: I changed nothing in src/web/style/content.ts, because nothing has measured an overflow yet. If the forge's check reports one, the fix belongs in src/web/style/content.ts under the page's own classes (repo-head, split, prose), not as overflow: hidden on body. There is no data-repo-head attribute in the source.
  • Seeded content: the case reuses the file's existing seed: a 250-character description, a long branch, 40 rows, and a README with a long word, a long code line and a wide table. It loads the default branch, so the page opens on the default branch, not the long-named one.

Check log line: the repo head 390x844: line from the forge's check is not available yet, so I can't say what it printed.

commented

Left #9455 open: 2 unticked items remain (If the forge's check measures an overflow, the pull fixes that element in src/web/style/content.ts within its scope (data-repo-head or the page's own classes), not by hiding overflow on body.; The pull says in one line what the case printed in the forge's check.).

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs