@@ -31,17 +31,17 @@ const emit = defineEmits<{
3131 @focus =" index != null && emit('focus', index)"
3232 @mouseenter =" index != null && emit('focus', index)"
3333 >
34- <header class =" flex items-start justify-between gap-4 mb-2" >
34+ <header class =" flex items-start justify-between gap-2 sm:gap- 4 mb-2" >
3535 <component
3636 :is =" headingLevel ?? 'h3'"
37- class =" font-mono text-base font-medium text-fg group-hover:text-fg transition-colors duration-200 min-w-0 break-all "
37+ class =" font-mono text-sm sm:text- base font-medium text-fg group-hover:text-fg transition-colors duration-200 min-w-0 break-words "
3838 >
3939 {{ result.package.name }}
4040 </component >
41- <div class =" flex items-center gap-1.5 shrink-0 max-w-32 " >
41+ <div class =" flex items-center gap-1.5 shrink-0" >
4242 <span
4343 v-if =" result.package.version"
44- class =" font-mono text-xs text-fg-subtle truncate"
44+ class =" font-mono text-xs text-fg-subtle truncate max-w-20 sm:max-w-32 "
4545 :title =" result.package.version"
4646 >
4747 v{{ result.package.version }}
@@ -56,11 +56,14 @@ const emit = defineEmits<{
5656 </div >
5757 </header >
5858
59- <p v-if =" result.package.description" class =" text-fg-muted text-sm line-clamp-2 mb-3" >
59+ <p
60+ v-if =" result.package.description"
61+ class =" text-fg-muted text-xs sm:text-sm line-clamp-2 mb-2 sm:mb-3"
62+ >
6063 <MarkdownText :text =" result.package.description" />
6164 </p >
6265
63- <footer class =" flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-fg-subtle" >
66+ <footer class =" flex flex-wrap items-center gap-x-3 sm:gap-x- 4 gap-y-2 text-xs text-fg-subtle" >
6467 <dl v-if =" showPublisher || result.package.date" class =" flex items-center gap-4 m-0" >
6568 <div
6669 v-if =" showPublisher && result.package.publisher?.username"
0 commit comments