|
|
@@ -157,17 +157,27 @@ export default function Index() {
|
|
|
flex: 1,
|
|
|
height: "1px", // 高度自适应
|
|
|
}}
|
|
|
- scrollTop={scrollTop}
|
|
|
+ // scrollTop={scrollTop}
|
|
|
scrollWithAnimation
|
|
|
onScrollToUpper={onScrollToUpper}
|
|
|
onScrollToLower={handleScrollToLower}
|
|
|
+ className="scale-y-[-1]"
|
|
|
>
|
|
|
+ <View className="pb-40 pt-8 scale-y-[-1]">
|
|
|
+ {agent && (
|
|
|
+ <RecommendQuestions
|
|
|
+ enableOutputAudioStream={streamVoiceEnable}
|
|
|
+ agent={agent}
|
|
|
+ chatInputActions={chatInputActions}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ </View>
|
|
|
<View
|
|
|
id="messageList"
|
|
|
- className="flex flex-col gap-16 px-18"
|
|
|
+ className="flex flex-col gap-16 px-18 scale-y-[-1] min-h-full"
|
|
|
onTouchMove={handleTouchMove}
|
|
|
>
|
|
|
- {isNewChat && <View className="text-white-70 text-12 leading-20 text-center pt-22">聊聊新话题</View>}
|
|
|
+ {isNewChat && <View className="text-white-70 text-12 leading-20 text-center pt-22 scale-y-[-1]">聊聊新话题</View>}
|
|
|
{showWelcome && <ChatGreeting agent={agent} chatInputActions={chatInputActions} />}
|
|
|
{groupedMessages.map((group, groupIndex) => {
|
|
|
return (
|
|
|
@@ -200,15 +210,6 @@ export default function Index() {
|
|
|
);
|
|
|
})}
|
|
|
</View>
|
|
|
- <View className="pb-40 pt-8">
|
|
|
- {agent && (
|
|
|
- <RecommendQuestions
|
|
|
- enableOutputAudioStream={streamVoiceEnable}
|
|
|
- agent={agent}
|
|
|
- chatInputActions={chatInputActions}
|
|
|
- />
|
|
|
- )}
|
|
|
- </View>
|
|
|
</ScrollView>
|
|
|
|
|
|
<View
|