mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	Rm redundant Surface
This commit is contained in:
		| @@ -36,7 +36,6 @@ import org.schabi.newpipe.util.image.ImageStrategy | |||||||
| fun CommentRepliesHeader(comment: CommentsInfoItem) { | fun CommentRepliesHeader(comment: CommentsInfoItem) { | ||||||
|     val context = LocalContext.current |     val context = LocalContext.current | ||||||
|  |  | ||||||
|     Surface(color = MaterialTheme.colorScheme.background) { |  | ||||||
|     Column(modifier = Modifier.padding(all = 8.dp)) { |     Column(modifier = Modifier.padding(all = 8.dp)) { | ||||||
|         Row( |         Row( | ||||||
|             modifier = Modifier.fillMaxWidth(), |             modifier = Modifier.fillMaxWidth(), | ||||||
| @@ -112,7 +111,6 @@ fun CommentRepliesHeader(comment: CommentsInfoItem) { | |||||||
|         ) |         ) | ||||||
|     } |     } | ||||||
| } | } | ||||||
| } |  | ||||||
|  |  | ||||||
| @Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO) | @Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO) | ||||||
| @Preview(name = "Dark mode", uiMode = Configuration.UI_MODE_NIGHT_YES) | @Preview(name = "Dark mode", uiMode = Configuration.UI_MODE_NIGHT_YES) | ||||||
| @@ -127,6 +125,8 @@ fun CommentRepliesHeaderPreview() { | |||||||
|     ) |     ) | ||||||
|  |  | ||||||
|     AppTheme { |     AppTheme { | ||||||
|  |         Surface(color = MaterialTheme.colorScheme.background) { | ||||||
|             CommentRepliesHeader(comment) |             CommentRepliesHeader(comment) | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Isira Seneviratne
					Isira Seneviratne