Skip to content

Commit 3185c40

Browse files
sybersdanielroe
andauthored
fix(ui): add missing AppTooltip usages (#883)
Co-authored-by: Daniel Roe <daniel@roe.dev>
1 parent 23d2ab3 commit 3185c40

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-pre-line z-[100] pointer-events-none"
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
@@ -861,11 +861,9 @@ defineOgImageComponent('Package', {
861861
<div class="space-y-1 sm:col-span-3">
862862
<dt class="text-xs text-fg-subtle uppercase tracking-wider flex items-center gap-1">
863863
{{ $t('package.stats.install_size') }}
864-
<span
865-
class="i-carbon:information w-3 h-3 text-fg-subtle"
866-
aria-hidden="true"
867-
:title="sizeTooltip"
868-
/>
864+
<TooltipApp :text="sizeTooltip">
865+
<span class="i-carbon:information w-3 h-3 text-fg-subtle" aria-hidden="true" />
866+
</TooltipApp>
869867
</dt>
870868
<dd class="font-mono text-sm text-fg">
871869
<!-- Package size (greyed out) -->

0 commit comments

Comments
 (0)