Skip to content

Commit

Permalink
[Session String Generator] Fix a small issue with the library picker
Browse files Browse the repository at this point in the history
  • Loading branch information
rojvv committed Mar 20, 2024
1 parent 98f3478 commit a795f24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions islands/SessionStringGenerator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,11 @@ function PickLibrary() {
{libraries.map((v) => (
<button
class="bg-gradient py-3 px-4 rounded-xl border-border border-2 cursor-pointer flex flex-col items-start justify-center"
onClick={() => location.hash = `#${v.name.toLowerCase()}`}
onClick={(e) =>
e.currentTarget == e.target &&
(location.hash = `#${v.name.toLowerCase()}`)}
>
<span class="text-lg">{v.name}</span>
<span class="text-lg pointer-events-none">{v.name}</span>
<a
class="opacity-50 text-xs"
href={v.link[1]}
Expand Down

0 comments on commit a795f24

Please sign in to comment.