Replace padding modifier with verticalArrangement in comment header

This commit is contained in:
Isira Seneviratne 2024-07-05 16:14:36 +05:30
parent e72da94eb1
commit 42cb914616
1 changed files with 5 additions and 9 deletions

View File

@ -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
) {