Skip to content

Commit

Permalink
✨ feat: 默认关闭侧边栏 & 打开消息栏
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed Aug 1, 2024
1 parent 4cfed2f commit ebeb74f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/chat/ViewerMode/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import classNames from 'classnames';
import React, { memo } from 'react';
import { Flexbox } from 'react-layout-kit';

import ChatDialog from '@/app/chat/ViewerMode/ChatDialog';
import { HEADER_HEIGHT } from '@/constants/token';
import AgentViewer from '@/features/AgentViewer';
import MessageInput from '@/features/MessageInput';
Expand All @@ -22,7 +23,7 @@ export default memo(() => {
<AgentViewer height={`calc(100vh - ${HEADER_HEIGHT}px)`} agent={currentAgent} />
</div>
) : null}
{/*<ChatDialog className={classNames(styles.dialog, styles.content)} />*/}
<ChatDialog className={classNames(styles.dialog, styles.content)} />
<Flexbox flex={1} className={styles.mask} />
<Flexbox align={'center'} className={styles.docker}>
<div className={classNames(styles.input, styles.content)}>
Expand Down
2 changes: 1 addition & 1 deletion src/store/global/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const initialState = {
* 主题模式
*/
themeMode: 'auto' as ThemeMode,
showChatSidebar: true,
showChatSidebar: false,
showSessionList: true,
showChatDialog: true,
showRoleList: true,
Expand Down

0 comments on commit ebeb74f

Please sign in to comment.