From 82f0a0ebe013513a974a6d6b2533aa960fc57ced Mon Sep 17 00:00:00 2001 From: Ethan Dickson Date: Thu, 26 Jun 2025 14:46:35 +1000 Subject: [PATCH] fix: correct remote file picker dropdown chevron alignment --- .../Views/FileSync/FilePicker.swift | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy