Skip to content

Commit 9f11d70

Browse files
author
code3-dev
committed
Fix genre text alignment and spacing in single movie and series screens
1 parent 2e7c8be commit 9f11d70

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ On Unix/Linux/macOS:
121121
```
122122

123123
On Windows:
124-
``cmd
124+
```cmd
125125
scripts\fix-gradle-wrapper.bat
126126
```
127127

app/src/main/java/com/pira/ccloud/screens/SingleMovieScreen.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,15 @@ fun MovieDetailsContent(
347347
Box(
348348
contentAlignment = Alignment.Center,
349349
modifier = Modifier
350-
.padding(horizontal = 16.dp)
350+
.fillMaxSize()
351+
.padding(horizontal = 12.dp)
351352
) {
352353
Text(
353354
text = genre.title,
354355
style = MaterialTheme.typography.bodyMedium,
355356
color = MaterialTheme.colorScheme.onPrimaryContainer,
356-
fontWeight = FontWeight.Medium
357+
fontWeight = FontWeight.Medium,
358+
maxLines = 1
357359
)
358360
}
359361
}

app/src/main/java/com/pira/ccloud/screens/SingleSeriesScreen.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,13 +580,15 @@ fun SeriesDetailsContent(
580580
Box(
581581
contentAlignment = Alignment.Center,
582582
modifier = Modifier
583-
.padding(horizontal = 16.dp)
583+
.fillMaxSize()
584+
.padding(horizontal = 12.dp)
584585
) {
585586
Text(
586587
text = genre.title,
587588
style = MaterialTheme.typography.bodyMedium,
588589
color = MaterialTheme.colorScheme.onPrimaryContainer,
589-
fontWeight = FontWeight.Medium
590+
fontWeight = FontWeight.Medium,
591+
maxLines = 1
590592
)
591593
}
592594
}

0 commit comments

Comments
 (0)