Skip to content

fix: constrain bug report modal to viewport height#652

Open
mvanhorn wants to merge 2 commits intoSableClient:devfrom
mvanhorn:osc/629-bug-report-scaling
Open

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

Conversation

@mvanhorn
Copy link
Copy Markdown

@mvanhorn mvanhorn commented Apr 7, 2026

Description

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.

Fixes #629

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

AI disclosure:

  • Partially AI assisted (clarify which code was AI assisted and briefly explain what it does).
  • Fully AI generated (explain what all the generated code does in moderate detail).

The maxHeight and overflow style additions to BugReportModal.tsx were written alongside an AI tool. The changes add maxHeight: '90vh' to the MUI Modal component and its inner Box container, with overflow: 'hidden' on the Box to prevent the modal from growing beyond the viewport. The inner content area uses overflowY: 'auto' so the form fields remain scrollable within the constrained modal.

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

@mvanhorn
Copy link
Copy Markdown
Author

mvanhorn commented Apr 7, 2026

Updated the PR body with the full template and AI disclosure section, and added a changeset. Thanks for flagging.

Copy link
Copy Markdown
Member

@7w1 7w1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Copy Markdown
Contributor

@dozro dozro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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

4 participants