Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions app/components/Compare/FacetCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ function getShortName(header: string): string {
<!-- Facet header -->
<div class="flex items-center gap-1.5 px-3 py-2 bg-bg-subtle border-b border-border">
<span class="text-xs text-fg-muted uppercase tracking-wider font-medium">{{ label }}</span>
<span
v-if="description"
class="i-carbon:information w-3 h-3 text-fg-subtle"
:title="description"
aria-hidden="true"
/>
<TooltipApp v-if="description" :text="description" position="top">
<span
class="i-carbon:information w-3 h-3 text-fg-subtle"
:title="description"
aria-hidden="true"
/>
</TooltipApp>
</div>

<!-- Package values -->
Expand Down
2 changes: 1 addition & 1 deletion app/components/Compare/PackageSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function handleBlur() {
:aria-label="$t('compare.selector.remove_package', { package: pkg })"
@click="removePackage(pkg)"
>
<span class="i-carbon:close w-3.5 h-3.5" aria-hidden="true" />
<span class="i-carbon:close flex items-center w-3.5 h-3.5" aria-hidden="true" />
</button>
</div>
</div>
Expand Down
9 changes: 6 additions & 3 deletions app/pages/compare.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script setup lang="ts">
import { useRouteQuery } from '@vueuse/router'

const router = useRouter()

definePageMeta({
name: 'compare',
})

const router = useRouter()

// Sync packages with URL query param (stable ref - doesn't change on other query changes)
const packagesParam = useRouteQuery<string>('packages', '', { mode: 'replace' })

Expand Down Expand Up @@ -182,7 +182,10 @@ useSeoMeta({
</section>

<!-- Empty state -->
<section v-else class="text-center py-16 border border-dashed border-border rounded-lg">
<section
v-else
class="text-center px-1.5 py-16 border border-dashed border-border rounded-lg"
>
<div class="i-carbon:compare w-12 h-12 text-fg-subtle mx-auto mb-4" aria-hidden="true" />
<h2 class="font-mono text-lg text-fg-muted mb-2">
{{ $t('compare.packages.empty_title') }}
Expand Down
Loading