fix
This commit is contained in:
parent
ad45e56728
commit
924eddbf65
@ -155,6 +155,7 @@ private struct NetworkNodeDetailView: View {
|
||||
private struct ResourceItemCard: View {
|
||||
let resource: NetworkContext.Resource
|
||||
@State private var isHovered = false
|
||||
@Environment(\.openURL) private var openURL
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
@ -175,6 +176,12 @@ private struct ResourceItemCard: View {
|
||||
}
|
||||
.padding()
|
||||
.frame(minWidth: 0, maxWidth: .infinity, alignment: .leading)
|
||||
.contentShape(Rectangle())
|
||||
.onTapGesture {
|
||||
if let url = URL(string: resource.url) {
|
||||
openURL(url)
|
||||
}
|
||||
}
|
||||
.overlay(
|
||||
RoundedRectangle(cornerRadius: 10)
|
||||
.stroke(Color.gray, lineWidth: 1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user