Better align the scheduled flag

This commit is contained in:
Vitor Pamplona
2026-04-30 19:41:20 -04:00
parent bad3cfa8f6
commit 9ff9a4b4e2
2 changed files with 7 additions and 3 deletions
@@ -61,6 +61,7 @@ import com.vitorpamplona.amethyst.ui.screen.loggedIn.home.CrossfadeCheckIfVideoI
import com.vitorpamplona.amethyst.ui.screen.loggedIn.notifications.equalImmutableLists
import com.vitorpamplona.amethyst.ui.stringRes
import com.vitorpamplona.amethyst.ui.theme.SmallBorder
import com.vitorpamplona.amethyst.ui.theme.SpacedBy5dp
import com.vitorpamplona.amethyst.ui.theme.StdHorzSpacer
import com.vitorpamplona.amethyst.ui.theme.placeholderText
import com.vitorpamplona.quartz.nip53LiveActivities.meetingSpaces.MeetingRoomEvent
@@ -529,8 +530,11 @@ fun MeetingSpaceClosedFlag() {
* "Live now" once the moment passes).
*/
@Composable
fun MeetingSpacePlannedFlag(startsUnixSec: Long?) {
Column(horizontalAlignment = Alignment.End) {
fun MeetingSpacePlannedFlag(
startsUnixSec: Long?,
horizontalAlignment: Alignment.Horizontal = Alignment.End,
) {
Column(horizontalAlignment = horizontalAlignment, verticalArrangement = SpacedBy5dp) {
Text(
text = stringRes(id = R.string.meeting_space_planned_tag),
color = Color.White,
@@ -342,7 +342,7 @@ private fun RoomHeader(
}
StatusTag.STATUS.PLANNED -> {
MeetingSpacePlannedFlag(starts)
MeetingSpacePlannedFlag(starts, horizontalAlignment = Alignment.Start)
}
null -> {}