Skip to content

Conversation

@jonkafton
Copy link
Contributor

What are the relevant tickets?

N/A

Description (What does it do?)

Fixes issue with extra top margin at screen width >600px and <900px.

Screenshots (if appropriate):

Before:
image

After:
image

How can this be tested?

Size your browser window width to somewhere between 600px and 900px. Check that there is no gap between the header and the main content background. The issue on all pages, though less noticeable on the dashboard pages as they have no background <900px.

Additional Context

Introduced in #2620, which increased the header layout responsive breakpoint from 600px to 900px, but did not apply the same to margin calculation on the page wrapper top margin.

@ChristopherChudzicki ChristopherChudzicki self-assigned this Oct 27, 2025
[theme.breakpoints.down("sm")]: {
[theme.breakpoints.down("md")]: {
marginTop: "60px",
height: "calc(100vh - 60px)",
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you switch this and the 72px above to theme.custom.dimensions.headerHeightSm, theme.custom.dimensions.headerHeight. (Maybe smoot should have a theme.custom.dimensions.headerHeightMd.)

I'd also do a find-all for a few other places that need to be changed. One is the left-side nav bar.

Copy link
Contributor

@ChristopherChudzicki ChristopherChudzicki left a comment

Choose a reason for hiding this comment

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

A few other places need to be changed and it would be good to use the constants.

Copy link
Contributor

@ChristopherChudzicki ChristopherChudzicki left a comment

Choose a reason for hiding this comment

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

👍

@jonkafton jonkafton merged commit 0ae6f41 into main Oct 27, 2025
13 checks passed
@jonkafton jonkafton deleted the jk/fix-top-margin branch October 27, 2025 15:30
@odlbot odlbot mentioned this pull request Oct 27, 2025
17 tasks
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.

3 participants