Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Duplicates' scan settings popover grows with its folders

Țugui Dragoșebbff2ee76b6
diff --git a/Peel/Views/Duplicates/DuplicateScanForm.swift b/Peel/Views/Duplicates/DuplicateScanForm.swift
index d637cb26..7636a07c 100644
--- a/Peel/Views/Duplicates/DuplicateScanForm.swift
+++ b/Peel/Views/Duplicates/DuplicateScanForm.swift
@@ -60,7 +60,9 @@ struct DuplicateScanForm: View {
}
.padding([.horizontal, .bottom], 20)
}
- .frame(width: 420, height: 460)
+ .frame(width: 420)
+ // The popover grows with the folders listed up to this height, and the list scrolls past it.
+ .frame(maxHeight: 460)
.fileImporter(isPresented: $isChoosingFolders, allowedContentTypes: [.folder], allowsMultipleSelection: true) { result in
guard case .success(let urls) = result else { return }
rejectedFolders = duplicates.add(urls)