-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from lobehub/platform-optimize
style: 优化移动端使用体验
- Loading branch information
Showing
116 changed files
with
22,075 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,4 @@ logs | |
.next | ||
|
||
libs | ||
src/venders |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,4 @@ Dockerfile* | |
|
||
# misc | ||
# add other ignore file below | ||
.next | ||
.next |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { Space } from 'antd'; | ||
import React, { memo } from 'react'; | ||
import { Flexbox } from 'react-layout-kit'; | ||
|
||
import AgentCard from '@/components/agent/AgentCard'; | ||
import SystemRole from '@/components/agent/SystemRole'; | ||
import { CHAT_HEADER_HEIGHT } from '@/constants/token'; | ||
import useSessionContext from '@/hooks/useSessionContext'; | ||
|
||
import EditRole from '../actions/EditRole'; | ||
import History from '../actions/History'; | ||
import TokenMini from '../actions/TokenMini'; | ||
|
||
const ChatInfo = () => { | ||
const { sessionAgent } = useSessionContext(); | ||
|
||
return ( | ||
sessionAgent && ( | ||
<AgentCard | ||
style={{ height: `calc(100vh - ${CHAT_HEADER_HEIGHT}px)` }} | ||
agent={sessionAgent} | ||
actions={[ | ||
<Flexbox horizontal justify={'space-between'} align="center" key="token-history"> | ||
<Space size={4}> | ||
<TokenMini /> | ||
<History /> | ||
</Space> | ||
<EditRole /> | ||
</Flexbox>, | ||
]} | ||
footer={<SystemRole systemRole={sessionAgent.systemRole} style={{ marginTop: 16 }} />} | ||
/> | ||
) | ||
); | ||
}; | ||
|
||
export default memo(ChatInfo); |
Oops, something went wrong.