@@ -6,7 +6,7 @@ import { isServiceError } from '@/lib/utils';
66import { ChatThreadPanel } from './components/chatThreadPanel' ;
77import { notFound } from 'next/navigation' ;
88import { StatusCodes } from 'http-status-codes' ;
9- import { TopBar } from '../../ components/topBar ' ;
9+ import { Separator } from '@/ components/ui/separator ' ;
1010import { ChatName } from '../components/chatName' ;
1111import { ShareChatPopover } from '../components/shareChatPopover' ;
1212import { auth } from '@/auth' ;
@@ -134,30 +134,33 @@ export default async function Page(props: PageProps) {
134134
135135 return (
136136 < div className = "flex flex-col h-full" >
137- < TopBar
138- homePath = "/chat"
139- session = { session }
140- centerContent = {
141- < ChatName
142- name = { name }
143- id = { params . id }
144- isOwner = { isOwner }
145- isAuthenticated = { ! ! session }
146- />
147- }
148- actions = { isOwner ? (
149- < ShareChatPopover
150- chatId = { params . id }
151- visibility = { visibility }
152- currentUser = { session ?. user }
153- sharedWithUsers = { sharedWithUsers }
154- isChatSharingEnabledInCurrentPlan = { hasChatSharingEntitlement }
155- // Disable chat sharing for the askgh experiment since we
156- // don't want to allow users to search other members.
157- isChatSharingEnabled = { env . EXPERIMENT_ASK_GH_ENABLED === 'false' }
158- />
159- ) : undefined }
160- />
137+ < div className = "sticky top-0 left-0 right-0 z-10" >
138+ < div className = "flex flex-row items-center py-1.5 px-3" >
139+ < div className = "flex-1 flex justify-center" >
140+ < ChatName
141+ name = { name }
142+ id = { params . id }
143+ isOwner = { isOwner }
144+ isAuthenticated = { ! ! session }
145+ />
146+ </ div >
147+ < div className = "shrink-0" >
148+ { isOwner && (
149+ < ShareChatPopover
150+ chatId = { params . id }
151+ visibility = { visibility }
152+ currentUser = { session ?. user }
153+ sharedWithUsers = { sharedWithUsers }
154+ isChatSharingEnabledInCurrentPlan = { hasChatSharingEntitlement }
155+ // Disable chat sharing for the askgh experiment since we
156+ // don't want to allow users to search other members.
157+ isChatSharingEnabled = { env . EXPERIMENT_ASK_GH_ENABLED === 'false' }
158+ />
159+ ) }
160+ </ div >
161+ </ div >
162+ < Separator />
163+ </ div >
161164 < ChatThreadPanel
162165 languageModels = { languageModels }
163166 repos = { indexedRepos }
0 commit comments