Skip to content

fix: constrain bug report modal to viewport height#652

Open
mvanhorn wants to merge 1 commit intoSableClient:devfrom
mvanhorn:osc/629-bug-report-scaling
Open

fix: constrain bug report modal to viewport height#652
mvanhorn wants to merge 1 commit intoSableClient:devfrom
mvanhorn:osc/629-bug-report-scaling

Conversation

@mvanhorn
Copy link
Copy Markdown

@mvanhorn mvanhorn commented Apr 7, 2026

Summary

Constrains the bug report modal to 90vh max height so it doesn't overflow the viewport, which was cropping the close button and header text.

Changes

  • BugReportModal.tsx: Added maxHeight: '90vh' to the Modal and its inner Box container, with overflow: 'hidden' on the Box to prevent content from spilling out.

The modal's flexHeight prop still allows it to be shorter when content fits; the max just prevents it from exceeding the viewport.

Fixes #629

This contribution was developed with AI assistance (Claude Code).

Add maxHeight: 90vh to the Modal and its inner Box container so the
bug report screen doesn't overflow beyond the viewport, which was
causing the close button and header text to be cropped off.

Fixes SableClient#629
@mvanhorn mvanhorn requested review from 7w1 and hazre as code owners April 7, 2026 09:57
@dozro
Copy link
Copy Markdown
Contributor

dozro commented Apr 7, 2026

hey it seems like you're missing a changeset. Can you please add a changeset, as described here https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md#documenting-a-change

Thank you

@nushea
Copy link
Copy Markdown
Contributor

nushea commented Apr 7, 2026

not that it is particularly relevant in such a small change but could you please follow the PR template and AI disclosure since it is applicable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug reporting screen doesn't scale to the size of screen

3 participants