-
+
Also in your library
{links.length > 1 ? (
@@ -164,13 +217,20 @@ export function CrossModeLinksStrip({
1 ? 0 : undefined}
+ aria-label={compact && links.length > 1 ? "Related library matches; scroll horizontally for more" : undefined}
+ className={cn(
+ "cross-mode-links-rail",
+ compact
+ ? "polished-scroll flex min-w-0 items-center gap-2 overflow-x-auto overscroll-x-contain pb-1 md:pb-0"
+ : "grid min-w-0 gap-1.5 md:flex md:max-w-full md:flex-wrap md:gap-2",
+ )}
data-testid="cross-mode-links-rail"
>
{links.map((link) => {
const Icon = appModeIcons[link.modeId];
return (
-
+
+ Best match
+
+ );
+}
+
function IconButton({ label, icon: Icon, active = false }: { label: string; icon: LucideIcon; active?: boolean }) {
return (