File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/ui/components/about Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,12 +73,12 @@ fun AboutTab() {
7373 Column (
7474 modifier = Modifier
7575 .fillMaxWidth()
76- .padding(16 .dp)
7776 .verticalScroll(scrollState),
7877 verticalArrangement = Arrangement .spacedBy(8 .dp)
7978 ) {
8079 Column (
8180 modifier = Modifier
81+ .padding(16 .dp)
8282 .fillMaxWidth()
8383 .wrapContentSize(Alignment .Center ),
8484 horizontalAlignment = Alignment .CenterHorizontally
@@ -108,20 +108,23 @@ fun AboutTab() {
108108 )
109109 }
110110
111- Spacer (modifier = Modifier .height(4 .dp))
112-
113111 for (item in ABOUT_ITEMS ) {
114- AboutItem (item)
112+ AboutItem (item, Modifier .padding(horizontal = 16 .dp) )
115113 }
114+
115+ Spacer (Modifier .height(8 .dp))
116116 }
117117 }
118118}
119119
120120@Preview(backgroundColor = 0xFFFFFFFF , showBackground = true )
121121@Composable
122122@NonRestartableComposable
123- private fun AboutItem (@PreviewParameter(AboutDataProvider ::class ) aboutData : AboutData ) {
124- Column {
123+ private fun AboutItem (
124+ @PreviewParameter(AboutDataProvider ::class ) aboutData : AboutData ,
125+ modifier : Modifier = Modifier ,
126+ ) {
127+ Column (modifier = modifier) {
125128 Text (
126129 text = stringResource(aboutData.title),
127130 style = MaterialTheme .typography.titleMedium
You can’t perform that action at this time.
0 commit comments