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:
@@ -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(
|
||||
|
@@ -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 = {},
|
||||
|
@@ -122,7 +122,6 @@ private fun CommentSection(
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
|
||||
) {
|
||||
ErrorPanel(
|
||||
errorInfo = errorInfo,
|
||||
|
Reference in New Issue
Block a user