Skip to content

Commit 3517744

Browse files
committed
Allow slight resize of window
1 parent b17c11e commit 3517744

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SupportCompanion/AppDelegate.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSPopoverDelegate {
5555

5656
popover = NSPopover()
5757
popover.behavior = .transient // Closes when clicking outside
58-
popover.contentSize = NSSize(width: 500, height: 520)
58+
popover.contentSize = NSSize(width: 500, height: 500)
5959
popover.contentViewController = NSHostingController(
6060
rootView: TrayMenuView(
6161
viewModel: CardGridViewModel(appState: AppStateManager.shared)
@@ -214,14 +214,14 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSPopoverDelegate {
214214
let contentView = ContentView()
215215
.environmentObject(AppStateManager.shared)
216216
.environmentObject(Preferences())
217-
.frame(minWidth: 1500, minHeight: 950)
217+
.frame(minWidth: 1100, minHeight: 650)
218218

219219
let hostingController = NSHostingController(rootView: contentView)
220220

221221
let window = NSWindow(contentViewController: hostingController)
222-
window.setContentSize(NSSize(width: 1500, height: 950))
222+
window.setContentSize(NSSize(width: 1520, height: 960))
223223
window.styleMask = [.titled, .closable, .resizable]
224-
window.minSize = NSSize(width: 1500, height: 950)
224+
window.minSize = NSSize(width: 1100, height: 650)
225225
window.title = ""
226226
window.isReleasedWhenClosed = false
227227
window.backgroundColor = .clear

0 commit comments

Comments
 (0)