make header scroll better on ghost

This commit is contained in:
Nate Kelley 2025-03-28 13:42:25 -06:00
parent cca7c04292
commit 94be03ee93
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 7 additions and 2 deletions

View File

@ -76,7 +76,9 @@ export const useGetChat = <TData = IBusterChat>(
const lastMessage = iChatMessages[lastMessageId!];
if (lastMessage) {
Object.values(lastMessage.response_messages).forEach((responseMessage) => {
if (responseMessage.type === 'file' && responseMessage.file_type === 'metric') {
prefetchGetMetricDataClient({ id: responseMessage.id }, queryClient);
}
});
}

View File

@ -40,7 +40,10 @@ export const AppPageLayout: React.FC<
)}>
{header && (
<AppPageLayoutHeader
className={headerClassName}
className={cn(
headerBorderVariant === 'ghost' && 'relative z-10 -mt-[1px]',
headerClassName
)}
sizeVariant={headerSizeVariant}
borderVariant={headerBorderVariant}>
{header}