@@ -79,15 +79,15 @@ const sortedOptionalDependencies = computed(() => {
7979 <li
8080 v-for =" [dep, version] in sortedDependencies.slice(0, depsExpanded ? undefined : 10)"
8181 :key =" dep"
82- class =" flex items-center justify-start py-1 text-sm gap-2"
82+ class =" flex items-center justify-between py-1 text-sm gap-2"
8383 >
8484 <NuxtLink
8585 :to =" { name: 'package', params: { package: dep.split('/') } }"
86- class =" font-mono text-fg-muted hover:text-fg transition-colors duration-200 truncate min-w-0"
86+ class =" font-mono text-fg-muted hover:text-fg transition-colors duration-200 truncate min-w-0 flex-1 "
8787 >
8888 {{ dep }}
8989 </NuxtLink >
90- <span class =" flex items-center gap-1" >
90+ <span class =" flex items-center gap-1 max-w-[40%] " >
9191 <span
9292 v-if =" outdatedDeps[dep]"
9393 class =" shrink-0"
@@ -97,7 +97,6 @@ const sortedOptionalDependencies = computed(() => {
9797 >
9898 <span class =" i-carbon:warning-alt w-3 h-3 block" />
9999 </span >
100- <span aria-hidden =" true" class =" shrink grow" />
101100 <NuxtLink
102101 v-if =" getVulnerableDepInfo(dep)"
103102 :to =" {
@@ -157,10 +156,10 @@ const sortedOptionalDependencies = computed(() => {
157156 :key =" peer.name"
158157 class =" flex items-center justify-between py-1 text-sm gap-1 min-w-0"
159158 >
160- <div class =" flex items-center gap-1 shrink-0 " >
159+ <div class =" flex items-center gap-1 min-w-0 flex-1 " >
161160 <NuxtLink
162161 :to =" { name: 'package', params: { package: peer.name.split('/') } }"
163- class =" font-mono text-fg-muted hover:text-fg transition-colors duration-200"
162+ class =" font-mono text-fg-muted hover:text-fg transition-colors duration-200 truncate "
164163 >
165164 {{ peer.name }}
166165 </NuxtLink >
@@ -179,7 +178,7 @@ const sortedOptionalDependencies = computed(() => {
179178 name: 'package',
180179 params: { package: [...peer.name.split('/'), 'v', peer.version] },
181180 }"
182- class =" font-mono text-xs text-fg-subtle shrink-0 "
181+ class =" font-mono text-xs text-fg-subtle max-w-[40%] truncate "
183182 :title =" peer.version"
184183 >
185184 {{ peer.version }}
@@ -214,18 +213,17 @@ const sortedOptionalDependencies = computed(() => {
214213 optionalDepsExpanded ? undefined : 10,
215214 )"
216215 :key =" dep"
217- class =" flex items-center justify-start py-1 text-sm gap-2"
216+ class =" flex items-center justify-between py-1 text-sm gap-2"
218217 >
219218 <NuxtLink
220219 :to =" { name: 'package', params: { package: dep.split('/') } }"
221- class =" font-mono text-fg-muted hover:text-fg transition-colors duration-200 truncate min-w-0"
220+ class =" font-mono text-fg-muted hover:text-fg transition-colors duration-200 truncate min-w-0 flex-1 "
222221 >
223222 {{ dep }}
224223 </NuxtLink >
225- <span aria-hidden =" true" class =" shrink grow" />
226224 <NuxtLink
227225 :to =" { name: 'package', params: { package: [...dep.split('/'), 'v', version] } }"
228- class =" font-mono text-xs text-fg-subtle max-w-[50 %] text-end truncate"
226+ class =" font-mono text-xs text-fg-subtle max-w-[40 %] text-end truncate"
229227 :title =" version"
230228 >
231229 {{ version }}
0 commit comments