Skip to content

Commit

Permalink
show popover centered
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Aug 2, 2023
1 parent fc38e7e commit 87a9a5c
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ final class BookmarksBarPromptPopover: NSPopover {
private func setupContentController() {
let controller = BookmarksBarPromptViewController.create()
contentViewController = controller

let detach = NSSelectorFromString("detach")
if responds(to: detach) {
perform(detach)
}
contentViewController?.preferredContentSize = NSSize(width: 356, height: 272)
}

}
Expand Down Expand Up @@ -126,7 +122,7 @@ struct BookmarksBarPromptView: View {
.padding(.horizontal, 16)
.padding(.top, 20)
.padding(.bottom, 16)
.frame(width: 356, height: 272)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(Color("InterfaceBackgroundColor"))
}

Expand Down

0 comments on commit 87a9a5c

Please sign in to comment.