mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
refactor: fix scroll to last user query ux
- Updated DashboardClientLayout to improve child component overflow handling. - Refactored NewChatPage to streamline the layout and integrate ChatHeader directly within the Thread component. - Added optional header prop to Thread component for better customization. - Cleaned up ChatHeader by removing unnecessary wrapper for improved design.
This commit is contained in:
parent
0a458dde2f
commit
40e982d541
4 changed files with 18 additions and 119 deletions
|
|
@ -47,12 +47,7 @@ export function ChatHeader({ searchSpaceId }: ChatHeaderProps) {
|
|||
|
||||
return (
|
||||
<>
|
||||
{/* Header Bar */}
|
||||
<div className="flex items-center justify-between px-4 py-2 bg-background/80 backdrop-blur-sm">
|
||||
<ModelSelector onEdit={handleEditConfig} onAddNew={handleAddNew} />
|
||||
</div>
|
||||
|
||||
{/* Config Sidebar */}
|
||||
<ModelSelector onEdit={handleEditConfig} onAddNew={handleAddNew} />
|
||||
<ModelConfigSidebar
|
||||
open={sidebarOpen}
|
||||
onOpenChange={handleSidebarClose}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue