mac: lock settings window size

main
Peter Steinberger 2025-12-06 00:46:24 +01:00
parent 1ee690e87c
commit c1a64301ce
1 changed files with 3 additions and 1 deletions

View File

@ -365,7 +365,7 @@ struct ClawdisApp: App {
Settings {
SettingsRootView(state: state)
.frame(minWidth: 520, minHeight: 460)
.frame(width: SettingsTab.windowWidth, height: SettingsTab.windowHeight, alignment: .topLeading)
}
}
}
@ -660,6 +660,8 @@ struct SettingsRootView: View {
enum SettingsTab: CaseIterable {
case general, permissions, debug, about
static let windowWidth: CGFloat = 460
static let windowHeight: CGFloat = 500
var title: String {
switch self {
case .general: return "General"