Skip to content

Commit 198d3d2

Browse files
committed
Add collapsing jumpbar items
1 parent f2850b0 commit 198d3d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CodeEdit/Features/Editor/JumpBar/Views/EditorJumpBarComponent.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ struct EditorJumpBarComponent: View {
6565

6666
return button
6767
}
68+
.frame(
69+
maxWidth: isHovering || isLastItem ? nil : 20,
70+
alignment: .leading
71+
)
72+
.clipped()
6873
.padding(.trailing, 11)
6974
.background {
7075
Color(nsColor: colorScheme == .dark ? .white : .black)

0 commit comments

Comments
 (0)