Skip to content

fix: navbar height reduce & make better User Experience#220

Open
PAVAN-VANAM wants to merge 1 commit intoEswaramuthu:mainfrom
PAVAN-VANAM:fix/navbar-height-optimise
Open

fix: navbar height reduce & make better User Experience#220
PAVAN-VANAM wants to merge 1 commit intoEswaramuthu:mainfrom
PAVAN-VANAM:fix/navbar-height-optimise

Conversation

@PAVAN-VANAM
Copy link
Copy Markdown

Which issue does this PR close?

14.02.2026_17.00.07_REC.mp4

Rationale for this change

The existing navbar had excessive vertical height due to a large brand section displayed above the navigation menu. This resulted in unnecessary empty space, reduced visible content on initial load, and a bulky appearance—especially on smaller screens.

This change was made to improve visual hierarchy, optimize screen space usage, and enhance overall user experience across devices.

What changes are included in this PR?

  • Removed/minimized the large nav-brand section
  • Introduced a compact logo/text (AMS) inside the main navigation bar
  • Reduced overall navbar padding and height
  • Improved sticky header behavior
  • Adjusted responsive styles for better appearance on mobile and small screens
  • Minor CSS refinements to maintain layout consistency

Are these changes tested?

Yes.
The changes were manually tested across:

  • Desktop view
  • Tablet view
  • Mobile screen sizes

Verified:

  • Navbar height reduction
  • Proper alignment and spacing
  • Sticky behavior working correctly
  • Mobile menu toggle functioning without layout issues

Are there any user-facing changes?

Yes.

Users will notice:

  • A cleaner and more compact header
  • More content visible above the fold
  • Improved layout on mobile devices
  • Overall enhanced UI and navigation experience

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 14, 2026

@PAVAN-VANAM is attempting to deploy a commit to the 007's projects Team on Vercel.

A member of the Team first needs to authorize it.

Comment thread static/styles.css
Comment on lines 173 to 194
border: 1px solid #333;
}

/* Navigation Styles */
.navbar {
display: flex;
flex-direction: column;
/* Stack items vertically */
justify-content: center;
align-items: center;
gap: 1rem;
padding: 1rem 2rem;
/* ===== HEADER & NAVIGATION ===== */
.header {
position: sticky;
top: 0;
z-index: 1000;
background: var(--glass-bg);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border-color);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
height: 140px;
/* Increased height for specific 2-row layout */
}

.nav-brand {
width: 100%;
text-align: center;
padding: 2rem 0;
background: var(--glass-bg);
transition: all 0.3s ease;
}

.nav-brand h2 {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Correctness: The removal of height: 140px and the switch to position: sticky on .header (line 10) breaks multiple layout dependencies. The mobile .nav-menu (top: 120px/55px) now has incorrect offsets relative to the new dynamic header height, causing visible gaps. Additionally, due to body { padding: 20px }, the header will jump 20px to the top of the viewport upon scrolling and fail to span the full viewport width, unlike the previous fixed implementation.

Copy link
Copy Markdown
Author

@PAVAN-VANAM PAVAN-VANAM Feb 14, 2026

Choose a reason for hiding this comment

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

I don't thing above changes are not needed I tested everything working fine

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 15, 2026

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

Project Deployment Actions Updated (UTC)
achievement-management-system Ready Ready Preview, Comment Feb 15, 2026 8:37am

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.

Improve Navbar for Better UI

1 participant