fix(Thread): 吧名过长时贴子标题栏返回按键被遮挡
This commit is contained in:
parent
c9e779d004
commit
1761507ba3
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue