Tweak min height of syntax editor

This commit is contained in:
1024jp 2024-06-03 13:59:21 +09:00
parent 15a0ecd355
commit 5239395f78

View File

@ -64,7 +64,7 @@ struct SyntaxEditView: View {
weak var parent: NSHostingController<Self>?
@MainActor private static var viewSize = CGSize(width: 680, height: 500)
@MainActor private static var viewSize = CGSize(width: 680, height: 525)
@State private var name: String = ""
@State private var message: String?
@ -184,7 +184,7 @@ struct SyntaxEditView: View {
Color.clear.onChange(of: geometry.size) { Self.viewSize = $0 }
}
}
.frame(idealWidth: Self.viewSize.width, minHeight: 500, idealHeight: Self.viewSize.height)
.frame(idealWidth: Self.viewSize.width, minHeight: 525, idealHeight: Self.viewSize.height)
}