jerboa
jerboa copied to clipboard
Quotation mark is not rendered in communities' names
Jerboa Version 0.0.33/0.0.34 Describe the bug Quotation mark is not rendered in communities' names but does render on communities' page To Reproduce Steps to reproduce the behavior:
- Open app
- Go to the page of community with quotation mark in its name
- Open any post
Ok that's not really a bug (or is it?)
The issue is due to the fact that last word of community's name won't fit if url of instance is too long
Maybe zero-length space should be added here in Utils.kt so it could cut name of instance without hiding last word:
fun communityNameShown(community: CommunitySafe): String {
return if (community.local) {
community.title
} else {
"${community.title}\u200B@${hostName(community.actor_id)}"
}
}
Text(
text = communityNameShown(community),
style = style,
color = color,
modifier = modifier,
overflow = TextOverflow.Clip,
maxLines = 1,
)
It gets clipped
Here shown working