Repository: CodeEditApp/CodeEdit
File: CodeEdit/Features/Editor/JumpBar/Views/EditorJumpBarComponent.swift (Swift)

Code before:
        }
    }

    var body: some View {
        NSPopUpButtonView(selection: $selection) {
            guard let fileManager = workspace.workspaceFileManager else { return NSPopUpButton() }

            button.menu = EditorJumpBarMenu(
                fileItems: siblings,
                fileManager: fileManager,
                tappedOpenFile: tappedOpenFile
            )
            button.font = .systemFont(ofSize: NSFont.systemFontSize(for: .small))
            button.isBordered = false
            (button.cell as? NSPopUpButtonCell)?.arrowPosition = .noArrow

            return button
        }
        .frame(
            maxWidth: isHovering || isLastItem ? nil : truncatedCrumbWidth,
            alignment: .leading
        )
        .mask(
            LinearGradient(
                gradient: Gradient(
                    stops: truncatedCrumbWidth == nil ?
                    [
                        .init(color: .black, location: 0),
                        .init(color: .black, location: 1)
                    ] : [
                        .init(color: .black, location: 0),
                        .init(color: .black, location: 0.8),
                        .init(color: .clear, location: 1)
                    ]
                ),
                startPoint: .leading,
                endPoint: .trailing
            )
        )
        .clipped()
        .padding(.trailing, 11)
        .background {
            Color(nsColor: colorScheme == .dark ? .white : .black)
                .opacity(isHovering ? 0.05 : 0)
                .clipShape(RoundedRectangle(cornerSize: CGSize(width: 4, height: 4)))
            HStack {
                Spacer()
                if isHovering {
                    chevronUpDown
                        .padding(.trailing, 4)
                } else if !isLastItem {

Review comment (bug):
Correct me if I'm wrong but I think the gradient should disable when hovering too.
```suggestion
                    stops: truncatedCrumbWidth == nil || isHovering ?
```

Code after:
        }
    }

    var body: some View {
        NSPopUpButtonView(selection: $selection) {
            guard let fileManager = workspace.workspaceFileManager else { return NSPopUpButton() }

            button.menu = EditorJumpBarMenu(
                fileItems: siblings,
                fileManager: fileManager,
                tappedOpenFile: tappedOpenFile
            )
            button.font = .systemFont(ofSize: NSFont.systemFontSize(for: .small))
            button.isBordered = false
            (button.cell as? NSPopUpButtonCell)?.arrowPosition = .noArrow

            return button
        }
        .frame(
            maxWidth: isHovering || isLastItem ? nil : truncatedCrumbWidth,
            alignment: .leading
        )
        .mask(
            LinearGradient(
                gradient: Gradient(
                    stops: truncatedCrumbWidth == nil || isHovering ?
                    [
                        .init(color: .black, location: 0),
                        .init(color: .black, location: 1)
                    ] : [
                        .init(color: .black, location: 0),
                        .init(color: .black, location: 0.8),
                        .init(color: .clear, location: 1)
                    ]
                ),
                startPoint: .leading,
                endPoint: .trailing
            )
        )
        .clipped()
        .padding(.trailing, 11)
        .background {
            Color(nsColor: colorScheme == .dark ? .white : .black)
                .opacity(isHovering ? 0.05 : 0)
                .clipShape(RoundedRectangle(cornerSize: CGSize(width: 4, height: 4)))
            HStack {
                Spacer()
                if isHovering {
                    chevronUpDown
                        .padding(.trailing, 4)
                } else if !isLastItem {