mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-25 12:32:31 +01:00
Replace padding modifier with verticalArrangement in comment header
This commit is contained in:
parent
e72da94eb1
commit
42cb914616
@ -37,21 +37,17 @@ import org.schabi.newpipe.util.image.ImageStrategy
|
|||||||
fun CommentRepliesHeader(comment: CommentsInfoItem) {
|
fun CommentRepliesHeader(comment: CommentsInfoItem) {
|
||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
|
|
||||||
Column(modifier = Modifier.padding(all = 8.dp)) {
|
Column(modifier = Modifier.padding(8.dp), verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
horizontalArrangement = Arrangement.SpaceBetween,
|
horizontalArrangement = Arrangement.SpaceBetween,
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier
|
modifier = Modifier.clickable {
|
||||||
.padding(bottom = 8.dp, end = 8.dp)
|
val activity = context as FragmentActivity
|
||||||
.clickable {
|
NavigationHelper.openCommentAuthorIfPresent(activity, comment)
|
||||||
NavigationHelper.openCommentAuthorIfPresent(
|
},
|
||||||
context as FragmentActivity,
|
|
||||||
comment
|
|
||||||
)
|
|
||||||
},
|
|
||||||
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user