mirror of https://github.com/buster-so/buster.git
make header scroll better on ghost
This commit is contained in:
parent
cca7c04292
commit
94be03ee93
|
@ -76,7 +76,9 @@ export const useGetChat = <TData = IBusterChat>(
|
||||||
const lastMessage = iChatMessages[lastMessageId!];
|
const lastMessage = iChatMessages[lastMessageId!];
|
||||||
if (lastMessage) {
|
if (lastMessage) {
|
||||||
Object.values(lastMessage.response_messages).forEach((responseMessage) => {
|
Object.values(lastMessage.response_messages).forEach((responseMessage) => {
|
||||||
prefetchGetMetricDataClient({ id: responseMessage.id }, queryClient);
|
if (responseMessage.type === 'file' && responseMessage.file_type === 'metric') {
|
||||||
|
prefetchGetMetricDataClient({ id: responseMessage.id }, queryClient);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,10 @@ export const AppPageLayout: React.FC<
|
||||||
)}>
|
)}>
|
||||||
{header && (
|
{header && (
|
||||||
<AppPageLayoutHeader
|
<AppPageLayoutHeader
|
||||||
className={headerClassName}
|
className={cn(
|
||||||
|
headerBorderVariant === 'ghost' && 'relative z-10 -mt-[1px]',
|
||||||
|
headerClassName
|
||||||
|
)}
|
||||||
sizeVariant={headerSizeVariant}
|
sizeVariant={headerSizeVariant}
|
||||||
borderVariant={headerBorderVariant}>
|
borderVariant={headerBorderVariant}>
|
||||||
{header}
|
{header}
|
||||||
|
|
Loading…
Reference in New Issue