Fix minor ui glitches on older macOS (#695)

* Fix padding on toolbar buttons

* Fix sizing on setup view.
This commit is contained in:
Max Goedjen 2025-09-12 01:40:57 -07:00 committed by GitHub
parent 4f608ebbc6
commit 726d0580d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View File

@ -32,7 +32,6 @@ struct IntegrationsView: View {
.onAppear {
selectedInstruction = instructions.gettingStarted
}
.frame(minHeight: 500)
}
}
@ -62,6 +61,7 @@ struct FauxToolbarModifier<ToolbarContent: View>: ViewModifier {
}
}
.frame(minWidth: 400, minHeight: 400)
}
}

View File

@ -172,10 +172,13 @@ struct StepView<Content: View>: View {
.frame(width: 20)
VStack(alignment: .leading, spacing: 4) {
Text(title)
.fixedSize(horizontal: false, vertical: true)
.bold()
Text(description)
.fixedSize(horizontal: false, vertical: true)
if let detail {
Text(detail)
.fixedSize(horizontal: false, vertical: true)
.font(.callout)
.italic()
}

View File

@ -39,6 +39,7 @@ struct ToolbarButtonStyle: ButtonStyle {
} else {
configuration
.label
.padding(EdgeInsets(top: 6, leading: 8, bottom: 6, trailing: 8))
.background(colorScheme == .light ? lightColor : darkColor)
.foregroundColor(.white)
.clipShape(RoundedRectangle(cornerRadius: 5))