File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed
CodeEdit/Features/Editor/JumpBar/Views Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,23 @@ struct EditorJumpBarComponent: View {
7272 maxWidth: isHovering || isLastItem ? nil : truncatedCrumbWidth,
7373 alignment: . leading
7474 )
75+ . mask (
76+ LinearGradient (
77+ gradient: Gradient (
78+ stops: truncatedCrumbWidth == nil ?
79+ [
80+ . init( color: . black, location: 0 ) ,
81+ . init( color: . black, location: 1 )
82+ ] : [
83+ . init( color: . black, location: 0 ) ,
84+ . init( color: . black, location: 0.8 ) ,
85+ . init( color: . clear, location: 1 )
86+ ]
87+ ) ,
88+ startPoint: . leading,
89+ endPoint: . trailing
90+ )
91+ )
7592 . clipped ( )
7693 . padding ( . trailing, 11 )
7794 . background {
Original file line number Diff line number Diff line change @@ -79,23 +79,6 @@ struct EditorJumpBarView: View {
7979
8080 }
8181 }
82- . mask (
83- LinearGradient (
84- gradient: Gradient (
85- stops: crumbWidth != nil ?
86- [
87- . init( color: . black, location: 0 ) ,
88- . init( color: . black, location: 0.8 ) ,
89- . init( color: . clear, location: 1 )
90- ] : [
91- . init( color: . black, location: 0 ) ,
92- . init( color: . black, location: 1 )
93- ]
94- ) ,
95- startPoint: . leading,
96- endPoint: . trailing
97- )
98- )
9982 . background (
10083 GeometryReader { proxy in
10184 Color . clear
You can’t perform that action at this time.
0 commit comments