@@ -4,6 +4,7 @@ import _ from 'lodash'
44import { chatStore } from '~/core/chat/ChatStore'
55import { incomingMessageStore } from '~/core/IncomingMessageStore'
66import { actorStore } from '~/core/actor/ActorStore'
7+ import { settingStore } from '~/core/setting/SettingStore'
78
89import ChatBoxInputRow from '~/components/ChatBoxInputRow'
910import ChatBoxPrompt from '~/components/ChatBoxPrompt'
@@ -14,6 +15,7 @@ import Stop from '~/icons/Stop'
1415import { lightboxStore } from '~/features/lightbox/LightboxStore'
1516import { ChatBoxMessage } from '~/components/message/ChatBoxMessage'
1617import ScrollableChatFeed from '~/containers/ScrollableChatFeed'
18+ import ModelAndPersonaDisplay from '~/components/ModelAndPersonaDisplay'
1719
1820const ChatBox = ( ) => {
1921 const chat = chatStore . selectedChat
@@ -71,6 +73,7 @@ const ChatBox = () => {
7173 const isEditingMessage = ! ! chat . messageToEdit
7274 const variationIdToEdit = chat . variationToEdit ?. id
7375 const lightboxMessageId = lightboxStore . lightboxMessage ?. id
76+ const isSidebarOpen = settingStore . setting . isSidebarOpen
7477
7578 return (
7679 < div className = "flex max-h-full min-h-full w-full min-w-full max-w-full flex-col overflow-x-auto overflow-y-hidden rounded-md" >
@@ -105,6 +108,8 @@ const ChatBox = () => {
105108 </ button >
106109 ) }
107110 </ ChatBoxInputRow >
111+
112+ { ! isSidebarOpen && < ModelAndPersonaDisplay /> }
108113 </ div >
109114 )
110115}
0 commit comments