Skip to content

An AI-powered search engine with a generative UI

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

Yoshiki Miura1df54d8cb5ff
diff --git a/components/chat-messages.tsx b/components/chat-messages.tsx
index 4a1e29ab..a5aa03ce 100644
--- a/components/chat-messages.tsx
+++ b/components/chat-messages.tsx
@@ -171,7 +171,7 @@ export function ChatMessages({
<div
key={section.id}
id={`section-${section.id}`}
- className="chat-section pb-4 md:pb-14"
+ className="chat-section scroll-mt-14 pb-4 md:pb-14"
style={
sectionIndex === sections.length - 1
? { minHeight: `calc(100dvh - ${offsetHeight}px)` }