mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-03 05:07:38 +01:00
enhancement: shows only one date for edited contents (#456)
This commit is contained in:
parent
086ec44c2f
commit
2b03b93f8d
@ -107,7 +107,12 @@ fun PostCardFooter(
|
||||
)
|
||||
}
|
||||
}
|
||||
if (publishDate != null) {
|
||||
listOf(
|
||||
updateDate.orEmpty(),
|
||||
publishDate.orEmpty(),
|
||||
).firstOrNull {
|
||||
it.isNotBlank()
|
||||
}?.also { publishDate ->
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
@ -124,22 +129,13 @@ fun PostCardFooter(
|
||||
)
|
||||
}
|
||||
}
|
||||
if (updateDate != null) {
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
Icon(
|
||||
modifier = buttonModifier,
|
||||
imageVector = Icons.Default.Edit,
|
||||
contentDescription = null,
|
||||
tint = ancillaryColor,
|
||||
)
|
||||
Text(
|
||||
text = updateDate.prettifyDate(),
|
||||
style = MaterialTheme.typography.labelLarge,
|
||||
color = ancillaryColor,
|
||||
)
|
||||
}
|
||||
if (updateDate.orEmpty().isNotBlank()) {
|
||||
Icon(
|
||||
modifier = buttonModifier,
|
||||
imageVector = Icons.Default.Edit,
|
||||
contentDescription = null,
|
||||
tint = ancillaryColor,
|
||||
)
|
||||
}
|
||||
if (options.isNotEmpty()) {
|
||||
Icon(
|
||||
|
Loading…
x
Reference in New Issue
Block a user