diff --git a/Shared/Search/SearchTextField.swift b/Shared/Search/SearchTextField.swift index ce07afb5..70c20bcd 100644 --- a/Shared/Search/SearchTextField.swift +++ b/Shared/Search/SearchTextField.swift @@ -93,9 +93,16 @@ struct SearchTextField: View { .fill(Color.background) .frame(height: 27) .overlay( - RoundedRectangle(cornerRadius: 5, style: .continuous) - .stroke(Color.gray.opacity(0.4), lineWidth: 1) - .frame(height: 27) + Group { + if #available(macOS 26, *) { + // No border for macOS 26+ + EmptyView() + } else { + RoundedRectangle(cornerRadius: 5, style: .continuous) + .stroke(Color.gray.opacity(0.4), lineWidth: 1) + .frame(height: 27) + } + } ) } diff --git a/Shared/Search/SearchView.swift b/Shared/Search/SearchView.swift index 65f43696..290c3249 100644 --- a/Shared/Search/SearchView.swift +++ b/Shared/Search/SearchView.swift @@ -212,6 +212,13 @@ struct SearchView: View { HStack { Text("Sort:") .foregroundColor(.secondary) + .padding(.leading, { + if #available(macOS 26, *) { + return 12 + } else { + return 0 + } + }()) searchSortOrderPicker } }