Skip to content

fix: resolve GitHub logo navbar overlap on mobile, tablet and iPad Mini#26

Merged
BeeXD merged 1 commit into
mainfrom
feature/github-hero-sponsor-badge
Jun 28, 2026
Merged

fix: resolve GitHub logo navbar overlap on mobile, tablet and iPad Mini#26
BeeXD merged 1 commit into
mainfrom
feature/github-hero-sponsor-badge

Conversation

@BeeXD

@BeeXD BeeXD commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 28, 2026 15:00
@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dev3-0 Ready Ready Preview, Comment Jun 28, 2026 3:00pm

@BeeXD BeeXD merged commit 9cd8990 into main Jun 28, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the hero section’s top spacing and positioning to prevent the GitHub logo/title block from overlapping the site’s fixed navigation on smaller viewports (mobile/tablet/iPad Mini).

Changes:

  • Switches nav element selection used for measuring top offset/height (headernav) and updates the measurement used for padding calculations.
  • Tweaks hero padding-top values to reduce/adjust spacing under the navbar on non-XL viewports.
  • Removes a medium-breakpoint upward translate on the hero title block to avoid pushing it into the navbar area.

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

Comment thread src/sections/Hero.tsx
Comment on lines +72 to +73
const navEl = typeof document !== 'undefined' ? document.querySelector('nav') : null;
const measuredNavHeight = navEl ? Math.round(navEl.getBoundingClientRect().bottom) : 0;
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