From 703b7fe04ae68d07cef6ad95dcbe5f24dc4f0934 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Tue, 5 Aug 2025 18:40:03 +0100 Subject: [PATCH] made the host symbol popover attach to the correct button --- ShhShell/Views/Hosts/ConnectionView.swift | 10 +++++----- ShhShell/Views/Terminal/ShellTabView.swift | 2 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ShhShell/Views/Hosts/ConnectionView.swift b/ShhShell/Views/Hosts/ConnectionView.swift index f043780..0e133f3 100644 --- a/ShhShell/Views/Hosts/ConnectionView.swift +++ b/ShhShell/Views/Hosts/ConnectionView.swift @@ -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 { ToolbarItem { Button() { @@ -124,6 +119,11 @@ Hostkey fingerprint is \(handler.getHostkey() ?? "nil") HostSymbolPreview(symbol: handler.host.symbol, label: handler.host.label, small: true) .id(handler.host) } + .popover(isPresented: $showIconPicker) { + HostIconPicker(host: $handler.host) + .frame(minWidth: 300, minHeight: 200) + .modifier(presentationCompactPopover()) + } } ToolbarItem() { diff --git a/ShhShell/Views/Terminal/ShellTabView.swift b/ShhShell/Views/Terminal/ShellTabView.swift index 99d567c..11537b4 100644 --- a/ShhShell/Views/Terminal/ShellTabView.swift +++ b/ShhShell/Views/Terminal/ShellTabView.swift @@ -91,8 +91,6 @@ struct ShellTabView: View { } .frame(minWidth: 300, minHeight: 400) .modifier(presentationCompactPopover()) -// .presentationDragIndicator(.visible) -// .presentationDetents([.fraction(0.4), .large]) } } .padding(.horizontal, 10)