Skip to content

Commit 217e072

Browse files
authored
fix: exclude copy selection in btns and tooltip of install (#978)
1 parent 3a67356 commit 217e072

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

app/components/Terminal/Install.vue

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const copyCreateCommand = () => copyCreate(getFullCreateCommand())
123123
>
124124
<button
125125
type="button"
126-
class="px-2 py-0.5 font-mono text-xs text-fg-muted bg-bg-subtle/80 border border-border rounded transition-colors duration-200 opacity-0 group-hover/installcmd:opacity-100 hover:(text-fg border-border-hover) active:scale-95 focus-visible:opacity-100 focus-visible:outline-accent/70"
126+
class="px-2 py-0.5 font-mono text-xs text-fg-muted bg-bg-subtle/80 border border-border rounded transition-colors duration-200 opacity-0 group-hover/installcmd:opacity-100 hover:(text-fg border-border-hover) active:scale-95 focus-visible:opacity-100 focus-visible:outline-accent/70 select-none"
127127
:aria-label="$t('package.get_started.copy_command')"
128128
@click.stop="copyInstallCommand"
129129
>
@@ -150,7 +150,7 @@ const copyCreateCommand = () => copyCreate(getFullCreateCommand())
150150
>
151151
<NuxtLink
152152
:to="`/package/${typesPackageName}`"
153-
class="text-fg-subtle hover:text-fg-muted text-xs transition-colors focus-visible:outline-accent/70 rounded"
153+
class="text-fg-subtle hover:text-fg-muted text-xs transition-colors focus-visible:outline-accent/70 rounded select-none"
154154
:title="$t('package.get_started.view_types', { package: typesPackageName })"
155155
>
156156
<span class="i-carbon:arrow-right rtl-flip w-3 h-3 align-middle" aria-hidden="true" />
@@ -185,7 +185,7 @@ const copyCreateCommand = () => copyCreate(getFullCreateCommand())
185185
>
186186
<button
187187
type="button"
188-
class="px-2 py-0.5 font-mono text-xs text-fg-muted bg-bg-subtle/80 border border-border rounded transition-colors duration-200 opacity-0 group-hover/runcmd:opacity-100 hover:(text-fg border-border-hover) active:scale-95 focus-visible:opacity-100 focus-visible:outline-accent/70"
188+
class="px-2 py-0.5 font-mono text-xs text-fg-muted bg-bg-subtle/80 border border-border rounded transition-colors duration-200 opacity-0 group-hover/runcmd:opacity-100 hover:(text-fg border-border-hover) active:scale-95 focus-visible:opacity-100 focus-visible:outline-accent/70 select-none"
189189
@click.stop="copyRunCommand(executableInfo?.primaryCommand)"
190190
>
191191
{{ runCopied ? $t('common.copied') : $t('common.copy') }}
@@ -196,10 +196,8 @@ const copyCreateCommand = () => copyCreate(getFullCreateCommand())
196196
<!-- Create command (for packages with associated create-* package) - render all PM variants -->
197197
<template v-if="createPackageInfo">
198198
<!-- Comment line -->
199-
<div class="flex items-center gap-2 pt-1">
200-
<span class="text-fg-subtle font-mono text-sm select-none"
201-
># {{ $t('package.create.title') }}</span
202-
>
199+
<div class="flex items-center gap-2 pt-1 select-none">
200+
<span class="text-fg-subtle font-mono text-sm"># {{ $t('package.create.title') }}</span>
203201
<TooltipApp
204202
:text="$t('package.create.view', { packageName: createPackageInfo.packageName })"
205203
>
@@ -232,7 +230,7 @@ const copyCreateCommand = () => copyCreate(getFullCreateCommand())
232230
>
233231
<button
234232
type="button"
235-
class="px-2 py-0.5 font-mono text-xs text-fg-muted bg-bg-subtle/80 border border-border rounded transition-colors duration-200 opacity-0 group-hover/createcmd:opacity-100 hover:(text-fg border-border-hover) active:scale-95 focus-visible:opacity-100 focus-visible:outline-accent/70"
233+
class="px-2 py-0.5 font-mono text-xs text-fg-muted bg-bg-subtle/80 border border-border rounded transition-colors duration-200 opacity-0 group-hover/createcmd:opacity-100 hover:(text-fg border-border-hover) active:scale-95 focus-visible:opacity-100 focus-visible:outline-accent/70 select-none"
236234
:aria-label="$t('package.create.copy_command')"
237235
@click.stop="copyCreateCommand"
238236
>

0 commit comments

Comments
 (0)