新增点击评论头像跳转到用户主页功能
This commit is contained in:
@@ -585,6 +585,7 @@ fun CommentsSection(
|
|||||||
@Composable
|
@Composable
|
||||||
fun CommentItem(commentEntity: CommentEntity, onLike: () -> Unit = {}) {
|
fun CommentItem(commentEntity: CommentEntity, onLike: () -> Unit = {}) {
|
||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
|
val navController = LocalNavController.current
|
||||||
Column {
|
Column {
|
||||||
Row(modifier = Modifier.padding(vertical = 8.dp)) {
|
Row(modifier = Modifier.padding(vertical = 8.dp)) {
|
||||||
CustomAsyncImage(
|
CustomAsyncImage(
|
||||||
@@ -593,7 +594,15 @@ fun CommentItem(commentEntity: CommentEntity, onLike: () -> Unit = {}) {
|
|||||||
contentDescription = "Comment Profile Picture",
|
contentDescription = "Comment Profile Picture",
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.size(40.dp)
|
.size(40.dp)
|
||||||
.clip(CircleShape),
|
.clip(CircleShape)
|
||||||
|
.noRippleClickable {
|
||||||
|
navController.navigate(
|
||||||
|
NavigationRoute.AccountProfile.route.replace(
|
||||||
|
"{id}",
|
||||||
|
commentEntity.author.toString()
|
||||||
|
)
|
||||||
|
)
|
||||||
|
},
|
||||||
contentScale = ContentScale.Crop
|
contentScale = ContentScale.Crop
|
||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.width(8.dp))
|
Spacer(modifier = Modifier.width(8.dp))
|
||||||
|
|||||||
Reference in New Issue
Block a user