From 9ff9a4b4e20052cf856363e2b16c891dbd19fffe Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 30 Apr 2026 19:41:20 -0400 Subject: [PATCH] Better align the scheduled flag --- .../vitorpamplona/amethyst/ui/note/types/MeetingSpace.kt | 8 ++++++-- .../screen/loggedIn/nests/room/lobby/NestLobbyScreen.kt | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/MeetingSpace.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/MeetingSpace.kt index 24a5afa9f2..5aba46fc80 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/MeetingSpace.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/MeetingSpace.kt @@ -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, diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/nests/room/lobby/NestLobbyScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/nests/room/lobby/NestLobbyScreen.kt index 285c30749d..6aefe6b9c4 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/nests/room/lobby/NestLobbyScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/nests/room/lobby/NestLobbyScreen.kt @@ -342,7 +342,7 @@ private fun RoomHeader( } StatusTag.STATUS.PLANNED -> { - MeetingSpacePlannedFlag(starts) + MeetingSpacePlannedFlag(starts, horizontalAlignment = Alignment.Start) } null -> {}