UI调整,群聊开发

This commit is contained in:
weber
2025-08-20 19:19:14 +08:00
parent 791b24b2fb
commit 8f8c2ff2e9
27 changed files with 709 additions and 513 deletions

View File

@@ -59,15 +59,20 @@ fun AgentCard(
Row(
modifier = Modifier
) {
CustomAsyncImage(
context,
agentEntity.avatar,
contentDescription = "",
// 使用remember基于agentEntity.id来缓存图片避免滑动时重复加载
Box(
modifier = Modifier
.size(40.dp)
.clip(RoundedCornerShape(40.dp)),
contentScale = ContentScale.Crop
)
.clip(RoundedCornerShape(40.dp))
) {
CustomAsyncImage(
LocalContext.current,
agentEntity.avatar,
contentDescription = "",
modifier = Modifier.size(40.dp),
contentScale = ContentScale.Crop
)
}
Column(
modifier = Modifier
.weight(1f)