Skip to content

fix: offset chat section scroll target for mobile header#829

Merged
miurla merged 1 commit intomainfrom
fix/message-nav-dots-header-offset
Apr 15, 2026
Merged

fix: offset chat section scroll target for mobile header#829
miurla merged 1 commit intomainfrom
fix/message-nav-dots-header-offset

Conversation

@miurla
Copy link
Copy Markdown
Owner

@miurla miurla commented Apr 15, 2026

Summary

  • On tablet and smaller viewports the header has an opaque background (bg-background/80 backdrop-blur-sm below lg), so clicking a message navigation dot (feat: add message navigation dots to chat panel #814) scrolled the target user message behind the header.
  • Add scroll-mt-14 to .chat-section so scrollIntoView({ block: 'start' }) accounts for the header height.
  • No effect on lg+ viewports where the header is transparent.

Test plan

  • On a tablet viewport (e.g. 768px), send multiple messages and click a navigation dot — the target user message should land below the header, not behind it.
  • Verify PC (lg+) behavior is unchanged.
  • Verify mobile viewport behavior is correct.

On tablet and smaller viewports the header has an opaque background
(bg-background/80 backdrop-blur-sm), so clicking a message navigation
dot scrolled the target user message behind the header. Add scroll-mt-14
to chat sections so scrollIntoView accounts for header height.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 15, 2026

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

Project Deployment Actions Updated (UTC)
morphic Ready Ready Preview, Comment Apr 15, 2026 1:35pm

@miurla miurla merged commit 1df54d8 into main Apr 15, 2026
8 checks passed
@miurla miurla deleted the fix/message-nav-dots-header-offset branch April 15, 2026 13:37
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