mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
fix: scroll on branch change w/ multi response chat
Some checks are pending
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11.x) (push) Waiting to run
Python CI / Format Backend (3.12.x) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
Some checks are pending
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11.x) (push) Waiting to run
Python CI / Format Backend (3.12.x) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
This commit is contained in:
parent
463d7fb628
commit
48637893b1
@ -236,9 +236,11 @@
|
|||||||
await tick();
|
await tick();
|
||||||
await tick();
|
await tick();
|
||||||
|
|
||||||
const messageElement = document.getElementById(`message-${message.id}`);
|
if ($settings?.scrollOnBranchChange ?? true) {
|
||||||
if (messageElement) {
|
const messageElement = document.getElementById(`message-${message.id}`);
|
||||||
messageElement.scrollIntoView({ behavior: 'smooth' });
|
if (messageElement) {
|
||||||
|
messageElement.scrollIntoView({ behavior: 'smooth' });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await tick();
|
await tick();
|
||||||
|
@ -200,9 +200,11 @@
|
|||||||
await initHandler();
|
await initHandler();
|
||||||
await tick();
|
await tick();
|
||||||
|
|
||||||
const messageElement = document.getElementById(`message-${messageId}`);
|
if ($settings?.scrollOnBranchChange ?? true) {
|
||||||
if (messageElement) {
|
const messageElement = document.getElementById(`message-${messageId}`);
|
||||||
messageElement.scrollIntoView({ block: 'start' });
|
if (messageElement) {
|
||||||
|
messageElement.scrollIntoView({ block: 'start' });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@ -238,10 +240,9 @@
|
|||||||
messageChildrenIds = history.messages[currentMessageId].childrenIds;
|
messageChildrenIds = history.messages[currentMessageId].childrenIds;
|
||||||
}
|
}
|
||||||
history.currentId = currentMessageId;
|
history.currentId = currentMessageId;
|
||||||
|
// await tick();
|
||||||
await tick();
|
// await updateChat();
|
||||||
await updateChat();
|
// triggerScroll();
|
||||||
triggerScroll();
|
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -855,7 +855,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class=" py-0.5 flex w-full justify-between">
|
<div class=" py-0.5 flex w-full justify-between">
|
||||||
<div class=" self-center text-xs">
|
<div class=" self-center text-xs">
|
||||||
{$i18n.t('Scroll to bottom when switching between branches')}
|
{$i18n.t('Scroll On Branch Change')}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
|
Loading…
Reference in New Issue
Block a user