From a53760f1f43d0506852252d35b8a7c9442d89e18 Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Wed, 1 Apr 2026 03:15:15 +0200 Subject: [PATCH] Add more actions --- .../widgets/detail/TextNoteEventDetail.kt | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/ac/aux/compose/ui/composable/widgets/detail/TextNoteEventDetail.kt b/composeApp/src/commonMain/kotlin/ac/aux/compose/ui/composable/widgets/detail/TextNoteEventDetail.kt index d1cb752d..da7c8e84 100644 --- a/composeApp/src/commonMain/kotlin/ac/aux/compose/ui/composable/widgets/detail/TextNoteEventDetail.kt +++ b/composeApp/src/commonMain/kotlin/ac/aux/compose/ui/composable/widgets/detail/TextNoteEventDetail.kt @@ -20,6 +20,7 @@ import androidx.compose.material.icons.filled.AddReaction import androidx.compose.material.icons.filled.ArrowBackIosNew import androidx.compose.material.icons.filled.ChatBubble import androidx.compose.material.icons.filled.CurrencyBitcoin +import androidx.compose.material.icons.filled.MoreVert import androidx.compose.material.icons.filled.Person import androidx.compose.material.icons.filled.Repeat import androidx.compose.material3.BottomAppBar @@ -84,8 +85,8 @@ fun TextNoteEventDetail( horizontalAlignment = Alignment.CenterHorizontally ) { Row( - modifier = Modifier.fillMaxWidth().padding(20.dp), - horizontalArrangement = Arrangement.spacedBy(10.dp), + modifier = Modifier.fillMaxWidth().padding(12.dp), + horizontalArrangement = Arrangement.spacedBy(4.dp), verticalAlignment = Alignment.CenterVertically ) { val profile = localNostrEvent.profile @@ -104,10 +105,12 @@ fun TextNoteEventDetail( style = MaterialTheme.typography.bodyLarge ) - Text( - text = profile.nip05 ?: "", - style = MaterialTheme.typography.labelMedium - ) + profile.nip05?.let { + Text( + text = profile.nip05 ?: "", + style = MaterialTheme.typography.labelMedium + ) + } } @@ -120,6 +123,17 @@ fun TextNoteEventDetail( "Follow" ) } + + IconButton( + onClick = { + // TODO: Show dropdown of more actions... + } + ) { + Icon( + Icons.Default.MoreVert, + contentDescription = "More options" + ) + } } Text( modifier = Modifier.fillMaxWidth().padding(