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:
DESKTOP-RTLN3BA\$punk 2025-12-23 18:49:37 -08:00
parent 0a458dde2f
commit 40e982d541
4 changed files with 18 additions and 119 deletions

View file

@ -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}