2
0
Эх сурвалжийг харах

wizard: improve browse path display on iOS

osy 3 жил өмнө
parent
commit
31e1568a83

+ 8 - 3
Platform/Shared/FileBrowseField.swift

@@ -48,9 +48,14 @@ struct FileBrowseField: View {
             }
             }
         }
         }
         #else
         #else
-        TextField(titleKey, text: .constant(url?.path ?? ""))
-            .truncationMode(.head)
-            .disabled(true)
+        if let path = url?.path {
+            Text(path)
+                .lineLimit(1)
+                .truncationMode(.head)
+        } else {
+            Text(titleKey)
+                .foregroundColor(.secondary)
+        }
         if hasClearButton {
         if hasClearButton {
             Button {
             Button {
                 url = nil
                 url = nil