@@ -862,11 +862,11 @@ const Guid: React.FC = () => {
862862 const handleInputChange = useCallback (
863863 ( value : string ) => {
864864 setInput ( value ) ;
865+ // 首页不根据输入 @ 呼起 mention 列表,占位符里的 @agent 仅为提示,选 agent 用顶部栏或下拉手动选
865866 const match = value . match ( mentionMatchRegex ) ;
866867 if ( match ) {
867868 setMentionQuery ( match [ 1 ] ) ;
868- setMentionOpen ( true ) ;
869- setMentionSelectorOpen ( false ) ;
869+ setMentionOpen ( false ) ;
870870 } else {
871871 setMentionQuery ( null ) ;
872872 setMentionOpen ( false ) ;
@@ -1431,17 +1431,18 @@ const Guid: React.FC = () => {
14311431 < ConfigProvider getPopupContainer = { ( ) => guidContainerRef . current || document . body } >
14321432 < div ref = { guidContainerRef } className = { styles . guidContainer } >
14331433 < div className = { styles . guidLayout } >
1434- < p className = { `text-2xl font-semibold mb-8 text-0 text-center` } > { t ( 'conversation.welcome.title' ) } </ p >
1434+ < p className = { `text-2xl font-semibold mb-6 text-0 text-center` } > { t ( 'conversation.welcome.title' ) } </ p >
14351435
14361436 { /* Agent 选择器 - 在标题下方 */ }
14371437 { availableAgents && availableAgents . length > 0 && (
14381438 < div className = 'w-full flex justify-center' >
14391439 < div
1440- className = 'inline- flex items-center bg-fill-2 '
1440+ className = 'flex flex-wrap items-center justify-center '
14411441 style = { {
1442- marginBottom : 16 ,
1443- padding : '4px ' ,
1442+ marginBottom : 20 ,
1443+ padding : '6px ' ,
14441444 borderRadius : '30px' ,
1445+ backgroundColor : 'var(--color-guid-agent-bar, var(--aou-2))' ,
14451446 transition : 'all 0.6s cubic-bezier(0.2, 0.8, 0.3, 1)' ,
14461447 width : 'fit-content' ,
14471448 gap : 0 ,
@@ -1532,7 +1533,7 @@ const Guid: React.FC = () => {
15321533 </ Dropdown >
15331534 </ div >
15341535 ) }
1535- < Input . TextArea autoSize = { { minRows : 3 , maxRows : 20 } } placeholder = { typewriterPlaceholder || t ( 'conversation.welcome.placeholder' ) } className = { `text-16px focus:b-none rounded-xl !bg-transparent !b-none !resize-none !p-0 ${ styles . lightPlaceholder } ` } value = { input } onChange = { handleInputChange } onPaste = { onPaste } onFocus = { handleTextareaFocus } onBlur = { handleTextareaBlur } { ...compositionHandlers } onKeyDown = { handleInputKeyDown } > </ Input . TextArea >
1536+ < Input . TextArea autoSize = { { minRows : 3 , maxRows : 20 } } placeholder = { ` ${ selectedAgentLabel } , ${ typewriterPlaceholder || t ( 'conversation.welcome.placeholder' ) } ` } className = { `text-16px focus:b-none rounded-xl !bg-transparent !b-none !resize-none !p-0 ${ styles . lightPlaceholder } ` } value = { input } onChange = { handleInputChange } onPaste = { onPaste } onFocus = { handleTextareaFocus } onBlur = { handleTextareaBlur } { ...compositionHandlers } onKeyDown = { handleInputKeyDown } > </ Input . TextArea >
15361537 { mentionOpen && (
15371538 < div className = 'absolute z-50' style = { { left : 16 , top : 44 } } >
15381539 { mentionMenu }
@@ -1598,7 +1599,7 @@ const Guid: React.FC = () => {
15981599 }
15991600 >
16001601 < span className = 'flex items-center gap-4px cursor-pointer lh-[1]' >
1601- < Button type = 'text' shape = 'circle' className = { isPlusDropdownOpen ? styles . plusButtonRotate : '' } icon = { < Plus theme = 'outline' size = '14' strokeWidth = { 2 } fill = { iconColors . primary } /> } > </ Button >
1602+ < Button type = 'text' shape = 'circle' className = { `sendbox-model-btn ${ isPlusDropdownOpen ? styles . plusButtonRotate : '' } ` } icon = { < Plus theme = 'outline' size = '14' strokeWidth = { 2 } fill = { iconColors . primary } /> } > </ Button >
16021603 { files . length > 0 && (
16031604 < Tooltip className = { '!max-w-max' } content = { < span className = 'whitespace-break-spaces' > { getCleanFileNames ( files ) . join ( '\n' ) } </ span > } >
16041605 < span className = 'text-t-primary' > File({ files . length } )</ span >
0 commit comments