1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-10-25 12:27: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 = "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)
@Composable @Composable
fun ErrorPanelPreview() { private fun ErrorPanelPreview() {
AppTheme { AppTheme {
ErrorPanel( ErrorPanel(
errorInfo = ErrorInfo( errorInfo = ErrorInfo(

View File

@@ -1,5 +1,6 @@
package org.schabi.newpipe.ui.components.common package org.schabi.newpipe.ui.components.common
import android.content.res.Configuration
import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.RowScope import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.wrapContentWidth 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 @Composable
fun ServiceColoredButtonPreview() { private fun ServiceColoredButtonPreview() {
AppTheme { AppTheme {
ServiceColoredButton( ServiceColoredButton(
onClick = {}, onClick = {},

View File

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