diff --git a/Coder-Desktop/Coder-Desktop/Views/FileSync/FilePicker.swift b/Coder-Desktop/Coder-Desktop/Views/FileSync/FilePicker.swift index 6f392961..9ec26231 100644 --- a/Coder-Desktop/Coder-Desktop/Views/FileSync/FilePicker.swift +++ b/Coder-Desktop/Coder-Desktop/Views/FileSync/FilePicker.swift @@ -123,12 +123,18 @@ struct FilePickerEntry: View { } label: { Label { Text(entry.name) - ZStack { - CircularProgressView(value: nil, strokeWidth: 2, diameter: 10) - .opacity(entry.isLoading && entry.error == nil ? 1 : 0) - Image(systemName: "exclamationmark.triangle.fill") - .opacity(entry.error != nil ? 1 : 0) - } + // The NSView within the CircularProgressView breaks + // the chevron alignment within the DisclosureGroup view. + // So, we overlay the progressview with a manual offset + .padding(.trailing, 20) + .overlay(alignment: .trailing) { + ZStack { + CircularProgressView(value: nil, strokeWidth: 2, diameter: 10) + .opacity(entry.isLoading && entry.error == nil ? 1 : 0) + Image(systemName: "exclamationmark.triangle.fill") + .opacity(entry.error != nil ? 1 : 0) + } + } } icon: { Image(systemName: "folder") }.help(entry.error != nil ? entry.error!.description : entry.absolute_path)
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: