File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Coder-Desktop/Coder-Desktop/Views/FileSync Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -123,12 +123,18 @@ struct FilePickerEntry: View {
123
123
} label: {
124
124
Label {
125
125
Text ( entry. name)
126
- ZStack {
127
- CircularProgressView ( value: nil , strokeWidth: 2 , diameter: 10 )
128
- . opacity ( entry. isLoading && entry. error == nil ? 1 : 0 )
129
- Image ( systemName: " exclamationmark.triangle.fill " )
130
- . opacity ( entry. error != nil ? 1 : 0 )
131
- }
126
+ // The NSView within the CircularProgressView breaks
127
+ // the chevron alignment within the DisclosureGroup view.
128
+ // So, we overlay the progressview with a manual offset
129
+ . padding ( . trailing, 20 )
130
+ . overlay ( alignment: . trailing) {
131
+ ZStack {
132
+ CircularProgressView ( value: nil , strokeWidth: 2 , diameter: 10 )
133
+ . opacity ( entry. isLoading && entry. error == nil ? 1 : 0 )
134
+ Image ( systemName: " exclamationmark.triangle.fill " )
135
+ . opacity ( entry. error != nil ? 1 : 0 )
136
+ }
137
+ }
132
138
} icon: {
133
139
Image ( systemName: " folder " )
134
140
} . help ( entry. error != nil ? entry. error!. description : entry. absolute_path)
You can’t perform that action at this time.
0 commit comments