Skip to content

Commit 8fa519a

Browse files
committed
Limit line count in featured image description and author.
1 parent 019677b commit 8fa519a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/java/org/wikipedia/feed/image/FeaturedImageModule.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ fun FeaturedImageModule(
154154
text = featuredImage.description.text,
155155
color = Color.White,
156156
style = MaterialTheme.typography.bodySmall,
157+
maxLines = 2,
157158
linkStyle = TextLinkStyles(
158159
style = SpanStyle(
159160
color = Color.White,
@@ -173,6 +174,7 @@ fun FeaturedImageModule(
173174
text = "${featuredImage.artist?.html.orEmpty()} - ${featuredImage.credit?.html.orEmpty()}",
174175
color = Color.White,
175176
style = MaterialTheme.typography.bodySmall,
177+
maxLines = 1,
176178
linkStyle = TextLinkStyles(
177179
style = SpanStyle(
178180
color = Color.White,

0 commit comments

Comments
 (0)