Skip to content

Commit 2d32b62

Browse files
committed
fix: small fixes
1 parent 4accb5e commit 2d32b62

5 files changed

Lines changed: 6 additions & 24 deletions

File tree

app/components/Package/Card.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<script setup lang="ts">
2-
import Card from '../Card.vue'
3-
42
const props = defineProps<{
53
/** The search result object containing package data */
64
result: NpmSearchResult
@@ -31,7 +29,7 @@ const pkgDescription = useMarkdown(() => ({
3129
</script>
3230

3331
<template>
34-
<Card :isExactMatch="isExactMatch">
32+
<BaseCard :isExactMatch="isExactMatch">
3533
<div class="mb-2 flex items-baseline justify-start gap-2">
3634
<component
3735
:is="headingLevel ?? 'h3'"
@@ -160,5 +158,5 @@ const pkgDescription = useMarkdown(() => ({
160158
{{ keyword }}
161159
</li>
162160
</ul>
163-
</Card>
161+
</BaseCard>
164162
</template>

app/components/SearchSuggestionCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defineProps<{
1212
</script>
1313

1414
<template>
15-
<Card :isExactMatch="isExactMatch">
15+
<BaseCard :isExactMatch="isExactMatch">
1616
<NuxtLink
1717
:to="type === 'user' ? `/~${name}` : `/@${name}`"
1818
:data-suggestion-index="index"
@@ -61,5 +61,5 @@ defineProps<{
6161
aria-hidden="true"
6262
/>
6363
</NuxtLink>
64-
</Card>
64+
</BaseCard>
6565
</template>

app/components/SkeletonBlock.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
<!-- Vue component that only takes a class as prop and adds `bg-bg-elevated rounded animate-skeleton-pulse` to that class -->
2-
<script setup lang="ts">
3-
const props = defineProps<{
4-
class?: string
5-
}>()
6-
</script>
7-
81
<template>
9-
<div :class="`bg-bg-elevated rounded animate-skeleton-pulse ${props.class ?? ''}`" />
2+
<div class="bg-bg-elevated rounded animate-skeleton-pulse" />
103
</template>

app/components/SkeletonInline.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
<!-- Vue component that only takes a class as prop and adds `bg-bg-elevated rounded animate-skeleton-pulse` to that class -->
2-
<script setup lang="ts">
3-
const props = defineProps<{
4-
class?: string
5-
}>()
6-
</script>
7-
81
<template>
9-
<span
10-
:class="`inline-block bg-bg-elevated rounded animate-skeleton-pulse ${props.class ?? ''}`"
11-
/>
2+
<span class="inline-block bg-bg-elevated rounded animate-skeleton-pulse" />
123
</template>

0 commit comments

Comments
 (0)