fix(onboarding): anchor bottom bar and reduce height

This commit is contained in:
Peter Steinberger
2025-12-20 22:16:13 +00:00
parent 94b89216f7
commit d613800516

View File

@@ -24,7 +24,7 @@ final class OnboardingController {
let hosting = NSHostingController(rootView: OnboardingView()) let hosting = NSHostingController(rootView: OnboardingView())
let window = NSWindow(contentViewController: hosting) let window = NSWindow(contentViewController: hosting)
window.title = UIStrings.welcomeTitle window.title = UIStrings.welcomeTitle
window.setContentSize(NSSize(width: 680, height: 815)) window.setContentSize(NSSize(width: 680, height: 805))
window.styleMask = [.titled, .closable, .fullSizeContentView] window.styleMask = [.titled, .closable, .fullSizeContentView]
window.titlebarAppearsTransparent = true window.titlebarAppearsTransparent = true
window.titleVisibility = .hidden window.titleVisibility = .hidden
@@ -165,9 +165,10 @@ struct OnboardingView: View {
} }
.frame(height: self.contentHeight) .frame(height: self.contentHeight)
Spacer(minLength: 0)
self.navigationBar self.navigationBar
} }
.frame(width: self.pageWidth, height: 915) .frame(width: self.pageWidth, height: 805)
.background(Color(NSColor.windowBackgroundColor)) .background(Color(NSColor.windowBackgroundColor))
.onAppear { .onAppear {
self.currentPage = 0 self.currentPage = 0