Skip to content

Commit

Permalink
fix: use pointer cursor for user module which redirects to file (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
edimitchel authored Feb 11, 2023
1 parent a666322 commit 8c05e32
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/components/ModuleItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const npmBase = 'https://www.npmjs.com/package/'
<div border="~ base" p4 flex="~ gap2">
<div flex="~ col gap2" flex-auto of-hidden px1>
<div

text-lg of-hidden ws-nowrap text-ellipsis
>
<NuxtLink
Expand All @@ -47,13 +46,15 @@ const npmBase = 'https://www.npmjs.com/package/'
>
{{ data.name }}
</NuxtLink>
<a
<button
v-else-if="mod.entryPath"
cursor-pointer
role="button"
hover="underline text-primary"
@click="rpc.openInEditor(mod.entryPath!)"
>
{{ data.name }}
</a>
</button>
<span v-else>
{{ data.name }}
</span>
Expand Down

0 comments on commit 8c05e32

Please sign in to comment.