From b735da9a884cdbe065ba4f0c99d6ce971abcfeff Mon Sep 17 00:00:00 2001 From: seungwonme Date: Sat, 4 Jul 2026 22:24:39 +0900 Subject: [PATCH] fix(desktop): open YouTube channel About tab so description is visible --- .../Sources/SkimDesktopApp/ContentView.swift | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/desktop/Sources/SkimDesktopApp/ContentView.swift b/apps/desktop/Sources/SkimDesktopApp/ContentView.swift index c97bdb4..1f8e7ef 100644 --- a/apps/desktop/Sources/SkimDesktopApp/ContentView.swift +++ b/apps/desktop/Sources/SkimDesktopApp/ContentView.swift @@ -696,9 +696,20 @@ struct ContentView: View { .background(Design.panelBackground.opacity(0.72), in: RoundedRectangle(cornerRadius: 8)) .contentShape(Rectangle()) .onTapGesture { - if let url = URL(string: source.handleOrURL ?? "") { + openSourcePage(source) + } + } + + private func openSourcePage(_ source: TrackedSource) { + guard source.platform == "youtube" else { + if let url = source.handleOrURL.flatMap(URL.init(string:)) { NSWorkspace.shared.open(url) } + return + } + let path = source.canonicalID.hasPrefix("@") ? source.canonicalID : "channel/\(source.canonicalID)" + if let url = URL(string: "https://www.youtube.com/\(path)/about") { + NSWorkspace.shared.open(url) } }