1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-10-22 10:57:38 +00:00

Address reviewer changes - make previews private and remove white space

This commit is contained in:
Su TT
2025-10-06 11:11:13 -04:00
parent 9d3ac1b94f
commit 25e96d584a
3 changed files with 5 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ fun ErrorPanel(
@Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO)
@Preview(name = "Dark mode", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Composable
fun ErrorPanelPreview() {
private fun ErrorPanelPreview() {
AppTheme {
ErrorPanel(
errorInfo = ErrorInfo(

View File

@@ -1,5 +1,6 @@
package org.schabi.newpipe.ui.components.common
import android.content.res.Configuration
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.wrapContentWidth
@@ -40,9 +41,10 @@ fun ServiceColoredButton(
}
}
@Preview
@Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO)
@Preview(name = "Dark mode", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Composable
fun ServiceColoredButtonPreview() {
private fun ServiceColoredButtonPreview() {
AppTheme {
ServiceColoredButton(
onClick = {},

View File

@@ -122,7 +122,6 @@ private fun CommentSection(
Box(
modifier = Modifier
.fillMaxWidth()
) {
ErrorPanel(
errorInfo = errorInfo,