Skip to content

Commit 507bbd6

Browse files
authored
fix: prevent layout shift when vulnerability block is opened (#315)
1 parent ca3942a commit 507bbd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/PackageVulnerabilityTree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function getDepthStyle(depth: string | undefined) {
154154
>
155155
{{ vuln.id }}
156156
</a>
157-
<span class="truncate">{{ vuln.summary }}</span>
157+
<span class="truncate w-0 flex-1">{{ vuln.summary }}</span>
158158
</li>
159159
<li v-if="pkg.vulnerabilities.length > 2" class="text-xs text-fg-subtle">
160160
{{ $t('package.vulnerabilities.more', { count: pkg.vulnerabilities.length - 2 }) }}

0 commit comments

Comments
 (0)