krz/domain-dig

an ios app for DNS & SSL analysis

clone: git clone https://gitbay.org/krz/domain-dig.git

7156c088a438526182c517fafa35d31990d44f18

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2026-07-25T16:49:54Z

fix: align the redirect-row copy button to the trailing edge

In the Redirects section, each hop rendered the 44pt AppCopyButton inline
between the URL and the "(final)" label with no spacer, so the tall tap target
broke the row baseline and pushed "(final)" to the right.

Move the copy button to the trailing edge behind a Spacer and keep "(final)"
next to the URL — matching the certificate-SAN rows and the "Final URL" row in
the same card, which already lay their copy buttons out this way.
 DomainDig/ResultSectionViews.swift | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/DomainDig/ResultSectionViews.swift b/DomainDig/ResultSectionViews.swift
index e27c4d5..714919d 100644
--- a/DomainDig/ResultSectionViews.swift
+++ b/DomainDig/ResultSectionViews.swift
@@ -811,12 +811,13 @@ struct WebSectionView: View {
                             Text(redirect.url)
                                 .font(appDensity.font(.caption))
                                 .textSelection(.enabled)
-                            AppCopyButton(value: redirect.url, label: "Copy redirect URL")
                             if redirect.isFinal {
                                 Text("(final)")
                                     .font(appDensity.font(.caption2))
                                     .foregroundStyle(Color(.appTextSecondary))
                             }
+                            Spacer(minLength: 8)
+                            AppCopyButton(value: redirect.url, label: "Copy redirect URL")
                         }
                     }
                 }