Be less strict with feed and folder names (#206)

This commit is contained in:
Shinokuni 2024-09-20 13:07:12 +02:00
parent bf3c654a25
commit 81dc80d19a
4 changed files with 8 additions and 8 deletions

View File

@ -64,14 +64,14 @@ fun FeedItem(
FeedIcon( FeedIcon(
iconUrl = feed.iconUrl, iconUrl = feed.iconUrl,
name = feed.name!!, name = feed.name.orEmpty(),
size = 16.dp size = 16.dp
) )
ShortSpacer() ShortSpacer()
Text( Text(
text = feed.name!!, text = feed.name.orEmpty(),
style = MaterialTheme.typography.bodyMedium, style = MaterialTheme.typography.bodyMedium,
maxLines = 1, maxLines = 1,
overflow = TextOverflow.Ellipsis overflow = TextOverflow.Ellipsis

View File

@ -84,7 +84,7 @@ fun FolderExpandableItem(
MediumSpacer() MediumSpacer()
Text( Text(
text = folder.name!!, text = folder.name.orEmpty(),
style = MaterialTheme.typography.bodyLarge, style = MaterialTheme.typography.bodyLarge,
maxLines = 1, maxLines = 1,
overflow = TextOverflow.Ellipsis, overflow = TextOverflow.Ellipsis,

View File

@ -113,7 +113,7 @@ fun DrawerFolderItem(
DrawerFeedItem( DrawerFeedItem(
label = { label = {
Text( Text(
text = feed.name!!, text = feed.name.orEmpty(),
maxLines = 1, maxLines = 1,
overflow = TextOverflow.Ellipsis overflow = TextOverflow.Ellipsis
) )
@ -121,7 +121,7 @@ fun DrawerFolderItem(
icon = { icon = {
FeedIcon( FeedIcon(
iconUrl = feed.iconUrl, iconUrl = feed.iconUrl,
name = feed.name!! name = feed.name.orEmpty()
) )
}, },
badge = { Text(feed.unreadCount.toString()) }, badge = { Text(feed.unreadCount.toString()) },

View File

@ -63,7 +63,7 @@ fun TimelineDrawer(
DrawerFolderItem( DrawerFolderItem(
label = { label = {
Text( Text(
text = folder.name!!, text = folder.name.orEmpty(),
fontWeight = FontWeight.Medium, fontWeight = FontWeight.Medium,
maxLines = 1, maxLines = 1,
overflow = TextOverflow.Ellipsis overflow = TextOverflow.Ellipsis
@ -92,7 +92,7 @@ fun TimelineDrawer(
DrawerFeedItem( DrawerFeedItem(
label = { label = {
Text( Text(
text = feed.name!!, text = feed.name.orEmpty(),
maxLines = 1, maxLines = 1,
overflow = TextOverflow.Ellipsis overflow = TextOverflow.Ellipsis
) )
@ -100,7 +100,7 @@ fun TimelineDrawer(
icon = { icon = {
FeedIcon( FeedIcon(
iconUrl = feed.iconUrl, iconUrl = feed.iconUrl,
name = feed.name!! name = feed.name.orEmpty()
) )
}, },
badge = { Text(feed.unreadCount.toString()) }, badge = { Text(feed.unreadCount.toString()) },