mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-04 16:29:40 +00:00
Improved chat page by scrolling to the bottom after loading (#87)
This commit is contained in:
1 parent
3409872090
commit
1b3fff67ec
9 files changed
+57
-2
No files matched your search
@@ -0,0 +1,11 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace AIStudio.Tools;
|
||||
|
||||
public static class ElementReferenceExtensions
|
||||
{
|
||||
public static async ValueTask ScrollIntoViewAsync(this ElementReference elementReference, IJSRuntime jsRuntime)
|
||||
{
|
||||
await jsRuntime.InvokeVoidAsync("scrollToBottom", elementReference);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user