diff --git a/src/constants/theme.ts b/src/constants/theme.ts index 652177dc1..cdecac711 100644 --- a/src/constants/theme.ts +++ b/src/constants/theme.ts @@ -221,8 +221,8 @@ export const theme = extendTheme({ sm: '900px', md: '1200px', lg: '1500px', - xl: '1800', - '2xl': '2100' + xl: '1800px', + '2xl': '2100px' }, components: { Modal: ModalTheme, diff --git a/src/pages/chat/index.tsx b/src/pages/chat/index.tsx index 13c460eea..a40bd54aa 100644 --- a/src/pages/chat/index.tsx +++ b/src/pages/chat/index.tsx @@ -98,6 +98,7 @@ const Chat = ({ top: number; message: ChatSiteItemType; }>(); + const [foldSliderBar, setFoldSlideBar] = useState(false); const { lastChatModelId, @@ -636,14 +637,57 @@ const Chat = ({ flexDirection={['column', 'row']} backgroundColor={useColorModeValue('#fdfdfd', '')} > - {/* pc always show history. phone is only show when modelId is present */} + {/* pc always show history. */} {(isPc || !modelId) && ( - - + div': { visibility: 'visible', opacity: 1 } + }} + > + setFoldSlideBar(!foldSliderBar)} + > + + + + + )} @@ -656,6 +700,7 @@ const Chat = ({ flex={'1 0 0'} flexDirection={'column'} > + {/* chat header */} )} + {/* chat content box */} - + {chatData.history.map((item, index) => ( - + {item.obj === 'Human' && } {/* avatar */}