mirror of
https://github.com/readrops/Readrops.git
synced 2025-01-20 21:01:51 +01:00
Fix FeedItem UI when not associated to a FolderExpandableItem
This commit is contained in:
parent
7ad5e0bc54
commit
334a33f847
@ -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,
|
||||
|
@ -199,6 +199,7 @@ object FeedTab : Tab {
|
||||
)
|
||||
},
|
||||
onLongClick = { onFeedLongClick(feed) },
|
||||
displayDivider = false
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user