mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-04-10 17:47:19 +00:00
Comment
This commit is contained in:
parent
b9643e910e
commit
61777e9dc8
@ -88,7 +88,7 @@ extension ContentView {
|
|||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
})
|
})
|
||||||
.buttonStyle(ToolbarButtonStyle(color: color))
|
.buttonStyle(ToolbarButtonStyle(color: color))
|
||||||
.popover(item: $selectedUpdate, arrowEdge: .bottom) { update in
|
.popover(item: $selectedUpdate, attachmentAnchor: attachmentAnchor, arrowEdge: .bottom) { update in
|
||||||
UpdateDetailView(update: update)
|
UpdateDetailView(update: update)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -187,11 +187,8 @@ extension ContentView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var attachmentAnchor: PopoverAttachmentAnchor {
|
var attachmentAnchor: PopoverAttachmentAnchor {
|
||||||
if #available(macOS 14, *) {
|
// Ideally .point(.bottom), but broken on Sonoma (FB12726503)
|
||||||
return .rect(.bounds)
|
.rect(.bounds)
|
||||||
} else {
|
|
||||||
return .point(.bottom)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user