The frame script reported document.documentElement.scrollHeight. Inside a frame, that value is never less than the frame's own height, which starts at 600 px. A top bar on its own therefore left about 530 px of blank space below it.
The script now reports the height of the content box (getBoundingClientRect().height).
The new test failed before the change and passes after it.
Full vitest run: 1986 passed, exit code 0. tsc is clean. Lint shows 0 errors.
I checked the change live on /p/INS/hotel-technology: the top bar frame now fits its content.
The frame script reported `document.documentElement.scrollHeight`. Inside a frame, that value is never less than the frame's own height, which starts at 600 px. A top bar on its own therefore left about 530 px of blank space below it.
The script now reports the height of the content box (`getBoundingClientRect().height`).
- The new test failed before the change and passes after it.
- Full vitest run: 1986 passed, exit code 0. tsc is clean. Lint shows 0 errors.
- I checked the change live on `/p/INS/hotel-technology`: the top bar frame now fits its content.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
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.
The frame script reported
document.documentElement.scrollHeight. Inside a frame, that value is never less than the frame's own height, which starts at 600 px. A top bar on its own therefore left about 530 px of blank space below it.The script now reports the height of the content box (
getBoundingClientRect().height)./p/INS/hotel-technology: the top bar frame now fits its content.🤖 Generated with Claude Code
https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs