Skip to content

Commit 417ac12

Browse files
committed
fix: use tooltip in important info-notes instead of title
1 parent 840e416 commit 417ac12

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

app/components/Package/Dependencies.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ const numberFormatter = useNumberFormatter()
9595
{{ dep }}
9696
</LinkBase>
9797
<span class="flex items-center gap-1 max-w-[40%]" dir="ltr">
98-
<span
98+
<TooltipApp
9999
v-if="outdatedDeps[dep]"
100-
class="shrink-0"
100+
class="shrink-0 p-2 -m-2"
101101
:class="getVersionClass(outdatedDeps[dep])"
102-
:title="getOutdatedTooltip(outdatedDeps[dep], $t)"
103102
aria-hidden="true"
103+
:text="getOutdatedTooltip(outdatedDeps[dep], $t)"
104104
>
105105
<span class="i-carbon:warning-alt w-3 h-3" />
106-
</span>
106+
</TooltipApp>
107107
<LinkBase
108108
v-if="getVulnerableDepInfo(dep)"
109109
:to="packageRoute(dep, getVulnerableDepInfo(dep)!.version)"

app/components/Package/InstallScripts.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,18 @@ const isExpanded = shallowRef(false)
115115
{{ dep }}
116116
</LinkBase>
117117
<span class="flex items-center gap-1">
118-
<span
118+
<TooltipApp
119119
v-if="
120120
outdatedNpxDeps[dep] &&
121121
outdatedNpxDeps[dep].resolved !== outdatedNpxDeps[dep].latest
122122
"
123-
class="shrink-0"
123+
class="shrink-0 p-2 -m-2"
124124
:class="getVersionClass(outdatedNpxDeps[dep])"
125-
:title="getOutdatedTooltip(outdatedNpxDeps[dep], $t)"
126125
aria-hidden="true"
126+
:text="getOutdatedTooltip(outdatedNpxDeps[dep], $t)"
127127
>
128128
<span class="i-carbon:warning-alt w-3 h-3" />
129-
</span>
129+
</TooltipApp>
130130
<span
131131
class="font-mono text-xs text-end truncate"
132132
:class="getVersionClass(outdatedNpxDeps[dep])"

app/components/Package/SkillsModal.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,15 @@ function getWarningTooltip(skill: SkillListItem): string | undefined {
164164
aria-hidden="true"
165165
/>
166166
<span class="font-mono text-sm text-fg-muted">{{ skill.name }}</span>
167-
<span
167+
<TooltipApp
168168
v-if="skill.warnings?.length"
169-
class="i-carbon:warning w-3.5 h-3.5 text-amber-500 shrink-0"
170-
:title="getWarningTooltip(skill)"
171-
/>
169+
class="shrink-0 p-2 -m-2"
170+
aria-hidden="true"
171+
:text="getWarningTooltip(skill)"
172+
to="#skills-modal"
173+
>
174+
<span class="i-carbon:warning w-3.5 h-3.5 text-amber-500" />
175+
</TooltipApp>
172176
</button>
173177

174178
<!-- Expandable details -->

0 commit comments

Comments
 (0)