Skip to content

Extend header into iOS safe area#11

Merged
MSicc merged 1 commit intomasterfrom
codex/portfolio-modernization
Mar 8, 2026
Merged

Extend header into iOS safe area#11
MSicc merged 1 commit intomasterfrom
codex/portfolio-modernization

Conversation

@MSicc
Copy link
Member

@MSicc MSicc commented Mar 8, 2026

Summary

Describe the change in a few sentences.

Testing

List the checks you ran or explain what still needs validation.

Context

Link any related issue or add background that helps explain the change.

@MSicc MSicc self-assigned this Mar 8, 2026
Copilot AI review requested due to automatic review settings March 8, 2026 19:22
@MSicc MSicc merged commit ed50f82 into master Mar 8, 2026
3 of 4 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts global page backgrounds and layout sizing to support extending the header area (notably on iOS safe-area layouts).

Changes:

  • Removed the html element background gradient.
  • Removed body min-height: 100svh and the dark top gradient layer from the body background.
  • Removed env(safe-area-inset-bottom) handling from the footer padding.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


.site-footer {
padding: 2rem 0 calc(3rem + env(safe-area-inset-bottom));
padding: 2rem 0 3rem;
Copy link

Copilot AI Mar 8, 2026

Choose a reason for hiding this comment

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

Removing env(safe-area-inset-bottom) from the footer padding can cause the footer content to sit underneath the iOS home indicator (or other bottom safe-area obstructions), making links/buttons harder to use. Consider restoring a safe-area-aware bottom padding (optionally with a fallback like env(safe-area-inset-bottom, 0px)), or applying the safe-area padding to a footer inner wrapper if you don’t want it to affect the outer footer box.

Suggested change
padding: 2rem 0 3rem;
padding: 2rem 0 calc(3rem + env(safe-area-inset-bottom, 0px));

Copilot uses AI. Check for mistakes.
Comment on lines 26 to 28
html {
scroll-behavior: smooth;
background:
linear-gradient(180deg, #0f172a 0, #0f172a 8rem, #f5f8fb 8rem, #ebf1f7 100%);
}
Copy link

Copilot AI Mar 8, 2026

Choose a reason for hiding this comment

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

This change removes both the html background and body min-height: 100svh. On short pages (content height < viewport height), the canvas below the body can show the browser default background rather than your intended gradient, since the body background won’t necessarily paint the full viewport without a minimum height and the html background is now unset. To avoid visible background seams, keep a viewport-filling min-height on body (or set a background on html), or otherwise ensure the page background paints the full viewport height.

Copilot uses AI. Check for mistakes.
Comment on lines 44 to 51
body {
margin: 0;
min-height: 100svh;
font-family: "Source Sans 3", sans-serif;
color: var(--text);
background:
linear-gradient(180deg, rgba(15, 23, 42, 1) 0, rgba(15, 23, 42, 1) 8rem, rgba(245, 248, 251, 0) 8rem),
radial-gradient(circle at top left, rgba(103, 146, 196, 0.18), transparent 30%),
linear-gradient(180deg, #f5f8fb 0%, #ebf1f7 100%);
}
Copy link

Copilot AI Mar 8, 2026

Choose a reason for hiding this comment

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

This change removes both the html background and body min-height: 100svh. On short pages (content height < viewport height), the canvas below the body can show the browser default background rather than your intended gradient, since the body background won’t necessarily paint the full viewport without a minimum height and the html background is now unset. To avoid visible background seams, keep a viewport-filling min-height on body (or set a background on html), or otherwise ensure the page background paints the full viewport height.

Copilot uses AI. Check for mistakes.
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.

2 participants