Skip to content

fix(directory-list): wire mobile View button to registry homepage link#10966

Open
Santhosh1043k wants to merge 1 commit into
shadcn-ui:mainfrom
Santhosh1043k:fix/mobile-view-button-link
Open

fix(directory-list): wire mobile View button to registry homepage link#10966
Santhosh1043k wants to merge 1 commit into
shadcn-ui:mainfrom
Santhosh1043k:fix/mobile-view-button-link

Conversation

@Santhosh1043k

Copy link
Copy Markdown

What's changed

  • The mobile "View" button in apps/v4/components/directory-list.tsx had no href — clicking it did nothing.
  • Fixed by using asChild on the Button component and wrapping the content in an <a> tag pointing to getHomepageUrl(registry.homepage), consistent with how the desktop title link works.

Testing

Resize browser viewport below 640px on the /directory page — the "View" button now opens the registry homepage in a new tab.

Fixes #10899

@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

@Santhosh1043k is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

Can you sign the commits please? See https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: Directory mobile View button does not open registry link

1 participant