Merge pull request #2980 from vitorpamplona/claude/debug-longpress-root-note-4UR5I

Fix popup menu positioning and parameter naming
This commit is contained in:
Vitor Pamplona
2026-05-19 10:01:12 -04:00
committed by GitHub
2 changed files with 14 additions and 9 deletions
@@ -24,6 +24,7 @@ import android.content.Intent
import android.widget.Toast
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.PaddingValues
@@ -136,15 +137,19 @@ fun LongPressToQuickAction(
) {
val popupExpanded = remember { mutableStateOf(false) }
content { popupExpanded.value = true }
// Box anchors the Popup to the note card; otherwise its parent resolves to the
// enclosing LazyColumn and `Alignment.Center` centers on the whole list.
Box {
content { popupExpanded.value = true }
if (popupExpanded.value) {
NoteQuickActionMenu(
note = baseNote,
onDismiss = { popupExpanded.value = false },
accountViewModel = accountViewModel,
nav = nav,
)
if (popupExpanded.value) {
NoteQuickActionMenu(
note = baseNote,
onDismiss = { popupExpanded.value = false },
accountViewModel = accountViewModel,
nav = nav,
)
}
}
}
@@ -483,7 +483,7 @@ private fun FullBleedNoteCompose(
)
Column(
Modifier
modifier
.fillMaxWidth()
.padding(top = 10.dp),
) {