Sfoglia il codice sorgente

fix: dashboard avatarlist 限高

sheldon 6 giorni fa
parent
commit
01edacf061

+ 3 - 2
src/components/popup/popup/index.module.less

@@ -63,7 +63,8 @@
   display: flex;
   align-items: center;
   flex: 1;
-  font-size: 16px;
+  font-family: PingFangSC-Medium;
+  font-size: 20px;
   font-weight: 500;
-  line-height: 32px;
+  line-height: 28px;
 }

+ 2 - 2
src/pages/dashboard/components/AgentList/index.tsx

@@ -44,10 +44,10 @@ export default ({currentAgent,  setCurrentAgent, show, setShow }: IProps) => {
 
   return (
     <Popup title="选择智能体" show={show} setShow={setShow}>
-      <View className="flex flex-col gap-12 w-full">
+      <View className="flex flex-col gap-12 w-full overflow-y-auto max-h-[440px]">
         {agents.map((item) => {
           return (
-            <View className="flex items-center gap-8 p-12 rounded-8 overflow-hidden bg-[#F8F8F8]" onClick={()=> handleClick(item)}>
+            <View className="flex items-center gap-8 p-12 rounded-8 overflow-hidden shrink-0 bg-[#F8F8F8]" onClick={()=> handleClick(item)}>
               <View className="flex items-start w-40 shrink-0">
                 <AvatarMedia
                   source={item.avatarLogo || ""}

+ 1 - 1
src/pages/profile/index.tsx

@@ -148,7 +148,7 @@ export default function Profile() {
     // 如果智能体交接了,则可以跳去新智能体
     if(agentProfile?.toAgentId){
       return <View className="button-rounded-big" onClick={()=> {
-        Taro.navigateTo({
+        Taro.redirectTo({
           url: `/pages/profile/index?agentId=${agentProfile?.toAgentId}`
         });
       }}>前往访问</View>