From 9e171642ada2df75ecfce182db40d9e31d755dfa Mon Sep 17 00:00:00 2001 From: cc Date: Tue, 14 Apr 2026 19:58:10 +0200 Subject: [PATCH] Improve breadcrumb with binary name and inline version switcher - Show binary basename in breadcrumb after iOS version - Move version switcher inline with OS name - Remove separate Binary Detail/Search Results labels --- src/app/os/layout.tsx | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/src/app/os/layout.tsx b/src/app/os/layout.tsx index f775293..def3778 100644 --- a/src/app/os/layout.tsx +++ b/src/app/os/layout.tsx @@ -24,6 +24,8 @@ export default function OSDetailLayout({ const params = useSearchParams(); const pathname = usePathname(); const os = params.get("os") || ""; + const binaryPath = params.get("path") || ""; + const binaryName = binaryPath ? binaryPath.split("/").pop() : ""; const currentPage = pathname.includes("/files") ? "files" @@ -40,7 +42,7 @@ export default function OSDetailLayout({ return (
-
+
@@ -48,13 +50,23 @@ export default function OSDetailLayout({ - - {os?.split("/")[0]} - +
+ {os?.split("/")[0]} + +
+ {currentPage === "bin" && binaryName && ( + <> + + + + {binaryName} + + + + )}
-