Fix FeedItem UI when not associated to a FolderExpandableItem

This commit is contained in:
Shinokuni 2024-07-11 12:41:21 +02:00
parent 7ad5e0bc54
commit 334a33f847
2 changed files with 12 additions and 2 deletions

View File

@ -30,18 +30,27 @@ fun FeedItem(
feed: Feed,
onClick: () -> Unit,
onLongClick: () -> Unit,
displayDivider: Boolean = true
) {
Row(
modifier = Modifier
.fillMaxWidth()
.height(IntrinsicSize.Min)
.padding(start = MaterialTheme.spacing.mediumSpacing)
.then(
if (displayDivider) {
Modifier.padding(start = MaterialTheme.spacing.mediumSpacing)
} else {
Modifier
}
)
.combinedClickable(
onClick = onClick,
onLongClick = onLongClick
)
) {
VerticalDivider()
if (displayDivider) {
VerticalDivider()
}
Row(
verticalAlignment = Alignment.CenterVertically,

View File

@ -199,6 +199,7 @@ object FeedTab : Tab {
)
},
onLongClick = { onFeedLongClick(feed) },
displayDivider = false
)
}
}