mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
made the host symbol popover attach to the correct button
This commit is contained in:
@@ -111,11 +111,6 @@ Hostkey fingerprint is \(handler.getHostkey() ?? "nil")
|
|||||||
""")
|
""")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.popover(isPresented: $showIconPicker, attachmentAnchor: .point(.topTrailing), arrowEdge: .top) {
|
|
||||||
HostIconPicker(host: $handler.host)
|
|
||||||
.frame(minWidth: 300, minHeight: 200)
|
|
||||||
.modifier(presentationCompactPopover())
|
|
||||||
}
|
|
||||||
.toolbar {
|
.toolbar {
|
||||||
ToolbarItem {
|
ToolbarItem {
|
||||||
Button() {
|
Button() {
|
||||||
@@ -124,6 +119,11 @@ Hostkey fingerprint is \(handler.getHostkey() ?? "nil")
|
|||||||
HostSymbolPreview(symbol: handler.host.symbol, label: handler.host.label, small: true)
|
HostSymbolPreview(symbol: handler.host.symbol, label: handler.host.label, small: true)
|
||||||
.id(handler.host)
|
.id(handler.host)
|
||||||
}
|
}
|
||||||
|
.popover(isPresented: $showIconPicker) {
|
||||||
|
HostIconPicker(host: $handler.host)
|
||||||
|
.frame(minWidth: 300, minHeight: 200)
|
||||||
|
.modifier(presentationCompactPopover())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ToolbarItem() {
|
ToolbarItem() {
|
||||||
|
|||||||
@@ -91,8 +91,6 @@ struct ShellTabView: View {
|
|||||||
}
|
}
|
||||||
.frame(minWidth: 300, minHeight: 400)
|
.frame(minWidth: 300, minHeight: 400)
|
||||||
.modifier(presentationCompactPopover())
|
.modifier(presentationCompactPopover())
|
||||||
// .presentationDragIndicator(.visible)
|
|
||||||
// .presentationDetents([.fraction(0.4), .large])
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 10)
|
.padding(.horizontal, 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user