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.

Keep the list of pages a selection is on within the window

Țugui Dragoș288f6ad6dfb9
diff --git a/Peel/Views/CarriedPartsList.swift b/Peel/Views/CarriedPartsList.swift
index 149a072d..40aaa24f 100644
--- a/Peel/Views/CarriedPartsList.swift
+++ b/Peel/Views/CarriedPartsList.swift
@@ -11,6 +11,16 @@ struct CarriedPartsList: View {
let page: CarriedSelection.Page
var body: some View {
+ // As tall as its rows up to the ceiling Duplicates' scan settings keep, and scrolling past it.
+ ViewThatFits(in: .vertical) {
+ rows
+ ScrollView { rows }
+ }
+ .frame(width: 340)
+ .frame(maxHeight: 460)
+ }
+
+ private var rows: some View {
VStack(spacing: 2) {
ForEach(carrier.parts(from: page)) { part in
HStack(spacing: 6) {
@@ -42,7 +52,6 @@ struct CarriedPartsList: View {
}
}
.padding(10)
- .frame(width: 340)
}
private func label(_ part: CarriedSelection.Part) -> some View {