@@ -40,12 +40,12 @@ import Filter from "./filter";
4040import ChatInput from "./input" ;
4141import { LLMCostEstimationChat } from "./llm-cost-estimation" ;
4242import type { ChatState } from "./store" ;
43- import type {
44- ChatMessageTyped ,
45- ChatMessages ,
46- SubmitMentionsFn ,
47- } from "./types" ;
48- import { INPUT_HEIGHT , markChatAsReadIfUnseen , getThreadRootDate } from "./utils" ;
43+ import type { ChatMessageTyped , ChatMessages , SubmitMentionsFn } from "./types" ;
44+ import {
45+ INPUT_HEIGHT ,
46+ markChatAsReadIfUnseen ,
47+ getThreadRootDate ,
48+ } from "./utils" ;
4949import { ALL_THREADS_KEY , useThreadList } from "./threads" ;
5050
5151const FILTER_RECENT_NONE = {
@@ -100,14 +100,8 @@ const THREAD_SIDEBAR_STYLE: React.CSSProperties = {
100100} as const ;
101101
102102const THREAD_SIDEBAR_HEADER : React . CSSProperties = {
103- padding : "0 20px 10px" ,
104- fontWeight : 600 ,
105- fontSize : "14px" ,
106- textTransform : "uppercase" ,
103+ padding : "0 20px 15px" ,
107104 color : "#666" ,
108- display : "flex" ,
109- alignItems : "center" ,
110- gap : "10px" ,
111105} as const ;
112106
113107const THREAD_ITEM_LABEL_STYLE : React . CSSProperties = {
@@ -575,18 +569,34 @@ export function ChatRoom({
575569 return (
576570 < Layout . Sider width = { THREAD_SIDEBAR_WIDTH } style = { THREAD_SIDEBAR_STYLE } >
577571 < div style = { THREAD_SIDEBAR_HEADER } >
578- < span style = { { flex : 1 } } > Chats</ span >
579- < Space size = "small" >
580- < Switch
581- unCheckedChildren = "All"
582- checkedChildren = ""
583- size = "small"
584- checked = { isAllThreadsSelected }
585- onChange = { handleToggleAllChats }
586- />
587- </ Space >
572+ < div
573+ style = { {
574+ display : "flex" ,
575+ alignItems : "center" ,
576+ justifyContent : "space-between" ,
577+ marginBottom : "8px" ,
578+ } }
579+ >
580+ < span
581+ style = { {
582+ fontWeight : 600 ,
583+ fontSize : "15px" ,
584+ textTransform : "uppercase" ,
585+ } }
586+ >
587+ Chats
588+ </ span >
589+ < Space size = "small" >
590+ < span style = { { fontSize : "12px" } } > All</ span >
591+ < Switch
592+ size = "small"
593+ checked = { isAllThreadsSelected }
594+ onChange = { handleToggleAllChats }
595+ />
596+ </ Space >
597+ </ div >
588598 < Button
589- size = "small"
599+ block
590600 type = { ! selectedThreadKey ? "primary" : "default" }
591601 onClick = { ( ) => {
592602 setAllowAutoSelectThread ( false ) ;
@@ -595,6 +605,9 @@ export function ChatRoom({
595605 >
596606 New Chat
597607 </ Button >
608+ < Button block style = { { marginTop : "8px" } } >
609+ Search
610+ </ Button >
598611 </ div >
599612 { threads . length === 0 ? (
600613 < div style = { { padding : "0 20px" , color : "#888" , fontSize : "13px" } } >
0 commit comments