Skip to content

Commit af265e2

Browse files
committed
fix(client): add missing AppTooltip usages
1 parent d8a30b4 commit af265e2

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

app/components/Terminal/Install.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,12 @@ const copyCreateCommand = () => copyCreate(getFullCreateCommand())
203203
<NuxtLink
204204
:to="`/package/${createPackageInfo.packageName}`"
205205
class="text-fg-muted hover:text-fg text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 rounded"
206-
:title="$t('package.create.view', { packageName: createPackageInfo.packageName })"
207206
>
208-
<span class="i-carbon:information w-3 h-3 mt-1" aria-hidden="true" />
207+
<TooltipApp
208+
:text="$t('package.create.view', { packageName: createPackageInfo.packageName })"
209+
>
210+
<span class="i-carbon:information w-3 h-3 mt-1" aria-hidden="true" />
211+
</TooltipApp>
209212
<span class="sr-only">{{
210213
$t('package.create.view', { packageName: createPackageInfo.packageName })
211214
}}</span>

app/components/Tooltip/Base.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const { floatingStyles } = useFloating(triggerRef, tooltipRef, {
4040
<div
4141
v-if="props.isVisible"
4242
ref="tooltipRef"
43-
class="px-2 py-1 font-mono text-xs text-fg bg-bg-elevated border border-border rounded shadow-lg whitespace-nowrap z-[100] pointer-events-none"
43+
class="px-2 py-1 font-mono text-xs text-fg bg-bg-elevated border border-border rounded shadow-lg whitespace-nowrap z-[100] pointer-events-none whitespace-pre-line"
4444
:style="floatingStyles"
4545
v-bind="tooltipAttr"
4646
>

app/pages/package/[...package].vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -789,11 +789,9 @@ defineOgImageComponent('Package', {
789789
<div class="space-y-1 sm:col-span-3">
790790
<dt class="text-xs text-fg-subtle uppercase tracking-wider flex items-center gap-1">
791791
{{ $t('package.stats.install_size') }}
792-
<span
793-
class="i-carbon:information w-3 h-3 text-fg-subtle"
794-
aria-hidden="true"
795-
:title="sizeTooltip"
796-
/>
792+
<TooltipApp :text="sizeTooltip">
793+
<span class="i-carbon:information w-3 h-3 text-fg-subtle" aria-hidden="true" />
794+
</TooltipApp>
797795
</dt>
798796
<dd class="font-mono text-sm text-fg">
799797
<!-- Package size (greyed out) -->

0 commit comments

Comments
 (0)