Skip to content

Commit

Permalink
Visit link on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
nas5w committed Jan 28, 2025
1 parent 1178d34 commit 0730814
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion projects/web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,21 @@ function App() {

{hasChildren ? (
<div className="text-sm text-muted-foreground">
{element.children.length} accounts
{element.children.length} account
{element.children.length === 1 ? "" : "s"}
</div>
) : (
<Button
asChild
variant="outline"
size="sm"
className="ml-4 text-blueSkyBrand"
onKeyDown={(e) => {
if (e.key === "Enter") {
e.currentTarget.querySelector("a")?.click();
e.stopPropagation();
}
}}
>
<a
href={`https://bsky.app/profile/${element.metadata?.handle}`}
Expand Down

0 comments on commit 0730814

Please sign in to comment.