Add default timestamp position
This commit is contained in:
parent
23b8573ad4
commit
3c8cf0ef67
2 changed files with 9 additions and 2 deletions
|
|
@ -366,7 +366,7 @@ private fun MessageEventBubbleContent(
|
||||||
is TimelineItemVideoContent,
|
is TimelineItemVideoContent,
|
||||||
is TimelineItemLocationContent -> TimestampPosition.Above
|
is TimelineItemLocationContent -> TimestampPosition.Above
|
||||||
is TimelineItemPollContent -> TimestampPosition.Below
|
is TimelineItemPollContent -> TimestampPosition.Below
|
||||||
else -> TimestampPosition.Aligned
|
else -> TimestampPosition.Default
|
||||||
}
|
}
|
||||||
val replyToDetails = event.inReplyTo as? InReplyTo.Ready
|
val replyToDetails = event.inReplyTo as? InReplyTo.Ready
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,5 +30,12 @@ enum class TimestampPosition {
|
||||||
/**
|
/**
|
||||||
* Timestamp should always be rendered below the timeline event content (eg. poll).
|
* Timestamp should always be rendered below the timeline event content (eg. poll).
|
||||||
*/
|
*/
|
||||||
Below,
|
Below;
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
/**
|
||||||
|
* Default timestamp position for timeline event contents.
|
||||||
|
*/
|
||||||
|
val Default: TimestampPosition = Aligned
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue