From 42cb914616fb12708b6ed31cc9f34daaaed56cf8 Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Fri, 5 Jul 2024 16:14:36 +0530 Subject: [PATCH] Replace padding modifier with verticalArrangement in comment header --- .../compose/comment/CommentRepliesHeader.kt | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/compose/comment/CommentRepliesHeader.kt b/app/src/main/java/org/schabi/newpipe/compose/comment/CommentRepliesHeader.kt index a4939cfc2..52a360c0c 100644 --- a/app/src/main/java/org/schabi/newpipe/compose/comment/CommentRepliesHeader.kt +++ b/app/src/main/java/org/schabi/newpipe/compose/comment/CommentRepliesHeader.kt @@ -37,21 +37,17 @@ import org.schabi.newpipe.util.image.ImageStrategy fun CommentRepliesHeader(comment: CommentsInfoItem) { val context = LocalContext.current - Column(modifier = Modifier.padding(all = 8.dp)) { + Column(modifier = Modifier.padding(8.dp), verticalArrangement = Arrangement.spacedBy(8.dp)) { Row( modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically ) { Row( - modifier = Modifier - .padding(bottom = 8.dp, end = 8.dp) - .clickable { - NavigationHelper.openCommentAuthorIfPresent( - context as FragmentActivity, - comment - ) - }, + modifier = Modifier.clickable { + val activity = context as FragmentActivity + NavigationHelper.openCommentAuthorIfPresent(activity, comment) + }, horizontalArrangement = Arrangement.spacedBy(8.dp), verticalAlignment = Alignment.CenterVertically ) {