Skip to content

Commit

Permalink
Merge pull request #87 from YoubetDao/fix/link_not_respond
Browse files Browse the repository at this point in the history
fix: click not responsive
  • Loading branch information
wfnuser authored Dec 11, 2024
2 parents fe54904 + f69b308 commit 8e1e52d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/pages/tutorial/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,23 @@ const Tutorial = () => {
<header className="mb-8 flex flex-row justify-between">
<h1 className="max-w-[720px] flex-1 break-words text-start text-5xl font-bold">{title ?? 'Not Found'}</h1>
<section className="flex h-12 flex-row gap-2">
<Button variant="outline" title="Source">
<a
className="flex flex-row items-center justify-center gap-2"
href={`https://github.com/${owner}/${repo}/blob/master/src/${decodeURIComponent(path ?? '')}.md`}
>
<Link size={14} />
</a>
<Button
variant="outline"
title="Source"
onClick={() =>
window.open(`https://github.com/${owner}/${repo}/blob/master/src/${decodeURIComponent(path ?? '')}.md`)
}
>
<Link size={14} />
</Button>
<Button variant="outline" title="Edit">
<a
className="flex flex-row items-center justify-center gap-2"
href={`https://github.com/${owner}/${repo}/blob/master/src/${decodeURIComponent(path ?? '')}.md`}
target="_blank"
rel="noopener noreferrer"
>
<Pen size={14} />
</a>
<Button
variant="outline"
title="Edit"
onClick={() =>
window.open(`https://github.com/${owner}/${repo}/blob/master/src/${decodeURIComponent(path ?? '')}.md`)
}
>
<Pen size={14} />
</Button>
</section>
</header>
Expand Down

0 comments on commit 8e1e52d

Please sign in to comment.