Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
fix(Thread): 吧名过长时贴子标题栏返回按键被遮挡
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanCheng65 committed Jan 28, 2024
1 parent c9e779d commit 06785a6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,7 @@ private fun TopBar(
if (forum.get { name }.isNotBlank()) {
Row(
modifier = Modifier
.padding(horizontal = 48.dp)
.height(IntrinsicSize.Min)
.clip(RoundedCornerShape(100))
.background(ExtendedTheme.colors.chip)
Expand All @@ -1512,7 +1513,9 @@ private fun TopBar(
text = stringResource(id = R.string.title_forum, it.get { name }),
fontSize = 14.sp,
color = ExtendedTheme.colors.text,
modifier = Modifier.padding(horizontal = 8.dp)
modifier = Modifier.padding(horizontal = 8.dp),
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
}
}
Expand Down

0 comments on commit 06785a6

Please sign in to comment.