feat: update ui components with improved design and functionality
This commit is contained in:
parent
ab1c597e1c
commit
c7cbecad68
@ -9,7 +9,7 @@
|
|||||||
--color-white-soft: rgba(255, 255, 255, 0.8);
|
--color-white-soft: rgba(255, 255, 255, 0.8);
|
||||||
--color-white-mute: rgba(255, 255, 255, 0.94);
|
--color-white-mute: rgba(255, 255, 255, 0.94);
|
||||||
|
|
||||||
--color-black: #181818;
|
--color-black: #151515;
|
||||||
--color-black-soft: #202020;
|
--color-black-soft: #202020;
|
||||||
--color-black-mute: #262626;
|
--color-black-mute: #262626;
|
||||||
|
|
||||||
|
|||||||
@ -94,6 +94,7 @@ const AgentsPage: FC = () => {
|
|||||||
style={{ width: '30%', height: 28 }}
|
style={{ width: '30%', height: 28 }}
|
||||||
size="small"
|
size="small"
|
||||||
variant="filled"
|
variant="filled"
|
||||||
|
allowClear
|
||||||
suffix={<SearchOutlined />}
|
suffix={<SearchOutlined />}
|
||||||
value={search}
|
value={search}
|
||||||
maxLength={50}
|
maxLength={50}
|
||||||
|
|||||||
@ -43,7 +43,7 @@ const EmojiHeader = styled.div`
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
font-size: 20px;
|
font-size: 24px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|||||||
@ -97,7 +97,7 @@ const MessageItem: FC<Props> = ({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (topic && onGetMessages && onSetMessages) {
|
if (topic && onGetMessages && onSetMessages) {
|
||||||
if (message.status === 'sending') {
|
if (message.status === 'sending' && index === 0) {
|
||||||
const messages = onGetMessages()
|
const messages = onGetMessages()
|
||||||
fetchChatCompletion({
|
fetchChatCompletion({
|
||||||
message,
|
message,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user