diff --git a/macos/Sources/Ghostty/SurfaceView.swift b/macos/Sources/Ghostty/SurfaceView.swift index 3c2e083f8..92d899300 100644 --- a/macos/Sources/Ghostty/SurfaceView.swift +++ b/macos/Sources/Ghostty/SurfaceView.swift @@ -152,6 +152,20 @@ extension Ghostty { if let url = surfaceView.hoverUrl { let padding: CGFloat = 3 ZStack { + HStack { + Spacer() + VStack(alignment: .leading) { + Spacer() + + Text(verbatim: url) + .padding(.init(top: padding, leading: padding, bottom: padding, trailing: padding)) + .background(.background) + .lineLimit(1) + .truncationMode(.middle) + .opacity(isHoveringURLLeft ? 1 : 0) + } + } + HStack { VStack(alignment: .leading) { Spacer() @@ -168,20 +182,6 @@ extension Ghostty { } Spacer() } - - HStack { - Spacer() - VStack(alignment: .leading) { - Spacer() - - Text(verbatim: url) - .padding(.init(top: padding, leading: padding, bottom: padding, trailing: padding)) - .background(.background) - .lineLimit(1) - .truncationMode(.middle) - .opacity(isHoveringURLLeft ? 1 : 0) - } - } } }