Skip to content

Commit 2fd0907

Browse files
committed
Added separator to branches context menu
1 parent 8374d16 commit 2fd0907

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/main/kotlin/com/jetpackduba/gitnuro/ui/context_menu/BranchContextMenu.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ fun branchContextMenuItems(
6868
onClick = onPullFromRemoteBranch
6969
)
7070
)
71+
72+
add(ContextMenuElement.ContextSeparator)
7173
}
7274

7375
if (isLocal) {
@@ -77,6 +79,8 @@ fun branchContextMenuItems(
7779
onClick = onChangeDefaultUpstreamBranch
7880
),
7981
)
82+
83+
add(ContextMenuElement.ContextSeparator)
8084
}
8185

8286
if (!isLocal) {
@@ -87,6 +91,8 @@ fun branchContextMenuItems(
8791
onClick = onDeleteRemoteBranch
8892
),
8993
)
94+
95+
add(ContextMenuElement.ContextSeparator)
9096
}
9197

9298
if (isLocal && !isCurrentBranch) {
@@ -97,6 +103,8 @@ fun branchContextMenuItems(
97103
onClick = onDeleteBranch
98104
)
99105
)
106+
107+
add(ContextMenuElement.ContextSeparator)
100108
}
101109

102110
add(

src/main/kotlin/com/jetpackduba/gitnuro/ui/context_menu/ContextMenu.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ fun showPopup(
254254
fun Separator() {
255255
Box(
256256
modifier = Modifier
257-
.padding(horizontal = 16.dp, vertical = 8.dp)
257+
.padding(horizontal = 16.dp, vertical = 4.dp)
258258
.fillMaxWidth()
259259
.height(1.dp)
260260
.background(MaterialTheme.colors.onBackground.copy(alpha = 0.4f))

0 commit comments

Comments
 (0)