fix(Thread): 吧名过长时贴子标题栏返回按键被遮挡

This commit is contained in:
HuanCheng65 2024-01-28 19:23:35 +08:00
parent c9e779d004
commit 1761507ba3
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
2 changed files with 5 additions and 1 deletions

View File

@ -39,6 +39,7 @@ import androidx.compose.material.MaterialTheme
import androidx.compose.material.Tab import androidx.compose.material.Tab
import androidx.compose.material.Text import androidx.compose.material.Text
import androidx.compose.material.icons.Icons import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.rounded.ArrowBack
import androidx.compose.material.icons.rounded.Add import androidx.compose.material.icons.rounded.Add
import androidx.compose.material.icons.rounded.MoreVert import androidx.compose.material.icons.rounded.MoreVert
import androidx.compose.material.icons.rounded.Refresh import androidx.compose.material.icons.rounded.Refresh

View File

@ -1493,6 +1493,7 @@ private fun TopBar(
if (forum.get { name }.isNotBlank()) { if (forum.get { name }.isNotBlank()) {
Row( Row(
modifier = Modifier modifier = Modifier
.padding(horizontal = 48.dp)
.height(IntrinsicSize.Min) .height(IntrinsicSize.Min)
.clip(RoundedCornerShape(100)) .clip(RoundedCornerShape(100))
.background(ExtendedTheme.colors.chip) .background(ExtendedTheme.colors.chip)
@ -1512,7 +1513,9 @@ private fun TopBar(
text = stringResource(id = R.string.title_forum, it.get { name }), text = stringResource(id = R.string.title_forum, it.get { name }),
fontSize = 14.sp, fontSize = 14.sp,
color = ExtendedTheme.colors.text, color = ExtendedTheme.colors.text,
modifier = Modifier.padding(horizontal = 8.dp) modifier = Modifier.padding(horizontal = 8.dp),
maxLines = 1,
overflow = TextOverflow.Ellipsis,
) )
} }
} }