Skip to content

fix(portfolio): fixed navbar positioning with viewport compensation#71

Merged
GMNAPI merged 5 commits into
masterfrom
feature/skills-card-modal-redesign
Mar 28, 2026
Merged

fix(portfolio): fixed navbar positioning with viewport compensation#71
GMNAPI merged 5 commits into
masterfrom
feature/skills-card-modal-redesign

Conversation

@GMNAPI

@GMNAPI GMNAPI commented Mar 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Navigation.tsx: cambia sticky top-0fixed inset-x-0 top-0 para garantizar que el navbar flote sobre el contenido independientemente de ancestros con overflow
  • layout.tsx: añade pt-16 en <main> para compensar los 64px que el nav ocupa fuera del flujo del documento
  • Navigation.test.tsx: actualiza la assertion de posicionamiento (stickyfixed)
  • .gitignore: añade .cursor

Test plan

  • Nav visible en todas las secciones al hacer scroll
  • Hero no queda tapado por el nav (pt-16 correcto)
  • npm run test:run pasa los 263 tests

@vercel

vercel Bot commented Mar 14, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
desenvolupadormaster Ready Ready Preview, Comment Mar 29, 2026 0:11am
dev-portfolio-lab Ready Ready Preview, Comment Mar 29, 2026 0:11am

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Esta solicitud de extracción aborda un problema de posicionamiento del navbar, asegurando que permanezca visible y correctamente alineado en la parte superior de la ventana gráfica. La solución implica una modificación fundamental en cómo se posiciona el navbar, pasando de un comportamiento sticky a uno fixed, y ajustando el diseño del contenido principal para acomodar este cambio sin superposiciones. El objetivo es mejorar la experiencia de usuario al garantizar una navegación consistente y accesible.

Highlights

  • Posicionamiento del Navbar: Se ha cambiado el posicionamiento del navbar de sticky a fixed para asegurar que flote sobre el contenido y sea visible en todo momento, independientemente de los ancestros con overflow.
  • Compensación de Espacio: Se añadió un padding-top de 16 unidades (pt-16) al elemento <main> para compensar la altura del navbar fijo y evitar que el contenido principal quede oculto.
  • Actualización de Tests: Se actualizó el test de Navigation.test.tsx para reflejar el nuevo posicionamiento fixed del navbar.
  • Ignorar Archivos: Se añadió .cursor al archivo .gitignore.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • .gitignore
    • Añadido .cursor a la lista de archivos ignorados.
  • apps/portfolio/app/[locale]/layout.tsx
    • Añadida la clase pt-16 al elemento <main> para compensar la altura del navbar.
  • apps/portfolio/src/shared/components/layout/Navigation.tsx
    • Cambiadas las clases CSS de sticky top-0 a fixed inset-x-0 top-0 para el componente de navegación.
  • apps/portfolio/tests/shared/components/layout/Navigation.test.tsx
    • Actualizada la aserción del test para verificar el posicionamiento fixed en lugar de sticky.
Activity
  • No se ha registrado actividad adicional (comentarios, revisiones) en esta solicitud de extracción hasta el momento.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

Este PR corrige el posicionamiento de la barra de navegación cambiándola de sticky a fixed para evitar problemas con elementos padres que tengan overflow. Los cambios asociados incluyen la compensación del espacio en el layout principal y la actualización de los tests. En general, es una buena solución al problema. He dejado una sugerencia para mejorar la mantenibilidad del código al evitar un valor hardcodeado para la altura de la barra de navegación, utilizando en su lugar una variable CSS. Esto hará que el código sea más robusto y fácil de mantener en el futuro.

Comment thread apps/portfolio/app/[locale]/layout.tsx
@github-actions

Copy link
Copy Markdown

CI Pipeline passed! All checks completed successfully.

…ault in lab

- portfolio: use resolvedTheme instead of theme in Navigation toggle logic
  and icon render to correctly handle defaultTheme='system'
- lab: add colorMode config with defaultMode='dark' and
  respectPrefersColorScheme=true to mirror portfolio OS-aware behavior
…ation

- Footer.test: URLs github/linkedin apuntan a perfil real (closes #72)
- Navigation.test: mock de useTheme incluye resolvedTheme para toggle correcto
@github-actions

Copy link
Copy Markdown

CI Pipeline passed! All checks completed successfully.

@GMNAPI GMNAPI merged commit 0adc564 into master Mar 28, 2026
11 checks passed
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.

1 participant