Fixed context menu not working when clicking on the graph

This commit is contained in:
Abdelilah El Aissaoui 2022-02-07 15:37:14 +01:00
parent 7e86e3b2fd
commit 759d30014b

View File

@ -526,12 +526,6 @@ fun CommitLine(
) {
val commitRefs = graphNode.refs
Box(modifier = Modifier
.clickable {
onRevCommitSelected(graphNode)
}
.padding(start = graphWidth + PADDING_BETWEEN_DIVIDER_AND_MESSAGE.dp)
) {
ContextMenuArea(
items = {
listOf(
@ -561,6 +555,12 @@ fun CommitLine(
)
)
},
) {
Box(modifier = Modifier
.clickable {
onRevCommitSelected(graphNode)
}
.padding(start = graphWidth + PADDING_BETWEEN_DIVIDER_AND_MESSAGE.dp)
) {
Row(
modifier = Modifier