Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
fix(settings): drop the doubled toolbar inset on macOS 26
altic-devb6cb2a4774e4
diff --git a/Sources/Fluid/UI/SettingsSearchPresentation.swift b/Sources/Fluid/UI/SettingsSearchPresentation.swiftindex 6e6fef53..b692fbe9 100644--- a/Sources/Fluid/UI/SettingsSearchPresentation.swift+++ b/Sources/Fluid/UI/SettingsSearchPresentation.swift@@ -55,10 +55,15 @@ final class SettingsSearchScrollCoordinator {anchorView.window != nilelse { return }+ // Scroll the match to just below the toolbar. scrollToVisible ignores the+ // toolbar inset, which left matches hidden under the glass.let targetRect = anchorView.convert(anchorView.bounds, to: documentView)- .insetBy(dx: 0, dy: -16)- documentView.scrollToVisible(targetRect)- scrollView.reflectScrolledClipView(scrollView.contentView)+ let clipView = scrollView.contentView+ let topInset = scrollView.contentInsets.top+ let maxY = max(documentView.bounds.height - clipView.bounds.height + topInset, -topInset)+ let y = min(max(targetRect.minY - topInset - 16, -topInset), maxY)+ clipView.scroll(to: NSPoint(x: clipView.bounds.origin.x, y: y))+ scrollView.reflectScrolledClipView(clipView)}}@@ -192,6 +197,11 @@ struct SettingsPersistentScrollView<Content: View>: NSViewRepresentable {func makeNSView(context _: Context) -> NSScrollView {let scrollView = NSScrollView()scrollView.drawsBackground = false+ // SwiftUI already keeps this view below the toolbar. Left on, AppKit adds a second+ // toolbar-height inset on macOS 26 and paints its blurred edge effect in the gap.+ scrollView.automaticallyAdjustsContentInsets = false+ scrollView.contentInsets = NSEdgeInsetsZero+ scrollView.scrollerInsets = NSEdgeInsetsZeroscrollView.hasVerticalScroller = truescrollView.hasHorizontalScroller = falsescrollView.autohidesScrollers = falsediff --git a/Sources/Fluid/UI/SettingsView.swift b/Sources/Fluid/UI/SettingsView.swiftindex 0e21ead7..d9665453 100644--- a/Sources/Fluid/UI/SettingsView.swift+++ b/Sources/Fluid/UI/SettingsView.swift@@ -1579,7 +1579,9 @@ struct SettingsView: View {.settingsSearchTarget(.fasterLongDictation).shownInSettingsSection(.experimental, selectedSection: self.selectedSection)}- .padding(16)+ .padding(.horizontal, 16)+ .padding(.top, 16)+ .padding(.bottom, 48).frame(maxWidth: self.selectedSection == .shortcuts ? 960 : .infinity).frame(maxWidth: .infinity).environment(\.settingsSearchPresentation, self.settingsSearchPresentation)