File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
src/packages/frontend/chat Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -937,19 +937,36 @@ export function ChatPanel({
937937 < Drawer
938938 open = { sidebarVisible }
939939 onClose = { ( ) => setSidebarVisible ( false ) }
940- placement = "left "
940+ placement = "right "
941941 width = { THREAD_SIDEBAR_WIDTH + 40 }
942942 title = "Chats"
943+ destroyOnClose
943944 >
944945 { renderSidebarContent ( ) }
945946 </ Drawer >
946- < div style = { { padding : "10px" } } >
947+ < div
948+ style = { {
949+ padding : "10px" ,
950+ display : "flex" ,
951+ gap : "8px" ,
952+ justifyContent : "flex-end" ,
953+ } }
954+ >
947955 < Button
948956 icon = { < Icon name = "bars" /> }
949957 onClick = { ( ) => setSidebarVisible ( true ) }
950958 >
951959 Chats
952960 </ Button >
961+ < Button
962+ type = { ! selectedThreadKey ? "primary" : "default" }
963+ onClick = { ( ) => {
964+ setAllowAutoSelectThread ( false ) ;
965+ setSelectedThreadKey ( null ) ;
966+ } }
967+ >
968+ New Chat
969+ </ Button >
953970 </ div >
954971 { renderChatContent ( ) }
955972 </ div >
You can’t perform that action at this time.
0 commit comments