mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-24 16:07:04 +00:00
Rm redundant Surface
This commit is contained in:
parent
8d4c608b52
commit
e87a2e0afc
@ -36,7 +36,6 @@ import org.schabi.newpipe.util.image.ImageStrategy
|
||||
fun CommentRepliesHeader(comment: CommentsInfoItem) {
|
||||
val context = LocalContext.current
|
||||
|
||||
Surface(color = MaterialTheme.colorScheme.background) {
|
||||
Column(modifier = Modifier.padding(all = 8.dp)) {
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
@ -111,7 +110,6 @@ fun CommentRepliesHeader(comment: CommentsInfoItem) {
|
||||
style = MaterialTheme.typography.bodyMedium
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO)
|
||||
@ -127,6 +125,8 @@ fun CommentRepliesHeaderPreview() {
|
||||
)
|
||||
|
||||
AppTheme {
|
||||
Surface(color = MaterialTheme.colorScheme.background) {
|
||||
CommentRepliesHeader(comment)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user