@@ -7,7 +7,7 @@ defineProps<{
77 </script >
88
99<template >
10- <section aria-labelledby =" provenance-heading" class =" scroll-mt-20" >
10+ <section id = " provenance " aria-labelledby =" provenance-heading" class =" scroll-mt-20" >
1111 <h2 id =" provenance-heading" class =" group text-xs text-fg-subtle uppercase tracking-wider mb-3" >
1212 <a
1313 href =" #provenance"
@@ -21,36 +21,43 @@ defineProps<{
2121 </a >
2222 </h2 >
2323
24- <div class =" space-y-3 border border-border rounded-lg p-5" >
25- <p class =" flex items-center gap-2 text-sm text-fg m-0" >
26- <span class =" i-lucide-shield-check w-4 h-4 shrink-0 text-emerald-500" aria-hidden =" true" />
27- <i18n-t keypath =" package.provenance_section.built_and_signed_on" tag =" span" >
28- <template #provider >
29- <strong >{{ details.providerLabel }}</strong >
30- </template >
31- </i18n-t >
32- </p >
33- <a
34- v-if =" details.buildSummaryUrl"
35- :href =" details.buildSummaryUrl"
36- target =" _blank"
37- rel =" noopener noreferrer"
38- class =" link text-sm text-fg-muted block mt-1"
39- >
40- {{ $t('package.provenance_section.view_build_summary') }}
41- </a >
24+ <div class =" space-y-3 border border-border rounded-lg p-4 sm:p-5" >
25+ <div class =" space-y-1" >
26+ <p class =" flex items-start gap-2 text-sm text-fg m-0" >
27+ <span
28+ class =" i-lucide-shield-check w-4 h-4 shrink-0 text-emerald-500 mt-0.5"
29+ aria-hidden =" true"
30+ />
31+ <i18n-t keypath =" package.provenance_section.built_and_signed_on" tag =" span" >
32+ <template #provider >
33+ <strong >{{ details.providerLabel }}</strong >
34+ </template >
35+ </i18n-t >
36+ </p >
4237
43- <dl class =" m-0 mt-4 flex justify-between" >
44- <div v-if =" details.sourceCommitUrl" class =" flex flex-col gap-0.5" >
38+ <a
39+ v-if =" details.buildSummaryUrl"
40+ :href =" details.buildSummaryUrl"
41+ target =" _blank"
42+ rel =" noopener noreferrer"
43+ class =" link text-sm text-fg-muted inline-flex"
44+ >
45+ {{ $t('package.provenance_section.view_build_summary') }}
46+ </a >
47+ </div >
48+
49+ <dl class =" m-0 mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3" >
50+ <div v-if =" details.sourceCommitUrl" class =" min-w-0 flex flex-col gap-0.5" >
4551 <dt class =" font-mono text-xs text-fg-muted m-0" >
4652 {{ $t('package.provenance_section.source_commit') }}
4753 </dt >
48- <dd class =" m-0" >
54+ <dd class =" m-0 min-w-0 " >
4955 <a
5056 :href =" details.sourceCommitUrl"
5157 target =" _blank"
5258 rel =" noopener noreferrer"
53- class =" link font-mono text-sm break-all"
59+ class =" link font-mono text-sm block min-w-0 truncate"
60+ :title =" details.sourceCommitSha ?? details.sourceCommitUrl"
5461 >
5562 {{
5663 details.sourceCommitSha
@@ -60,31 +67,34 @@ defineProps<{
6067 </a >
6168 </dd >
6269 </div >
63- <div v-if =" details.buildFileUrl" class =" flex flex-col gap-0.5" >
70+
71+ <div v-if =" details.buildFileUrl" class =" min-w-0 flex flex-col gap-0.5" >
6472 <dt class =" font-mono text-xs text-fg-muted m-0" >
6573 {{ $t('package.provenance_section.build_file') }}
6674 </dt >
67- <dd class =" m-0" >
75+ <dd class =" m-0 min-w-0 " >
6876 <a
6977 :href =" details.buildFileUrl"
7078 target =" _blank"
7179 rel =" noopener noreferrer"
72- class =" link font-mono text-sm break-all"
80+ class =" link font-mono text-sm block min-w-0 break-words"
81+ :title =" details.buildFilePath ?? details.buildFileUrl"
7382 >
7483 {{ details.buildFilePath ?? details.buildFileUrl }}
7584 </a >
7685 </dd >
7786 </div >
78- <div v-if =" details.publicLedgerUrl" class =" flex flex-col gap-0.5" >
87+
88+ <div v-if =" details.publicLedgerUrl" class =" min-w-0 flex flex-col gap-0.5" >
7989 <dt class =" font-mono text-xs text-fg-muted m-0" >
8090 {{ $t('package.provenance_section.public_ledger') }}
8191 </dt >
82- <dd class =" m-0" >
92+ <dd class =" m-0 min-w-0 " >
8393 <a
8494 :href =" details.publicLedgerUrl"
8595 target =" _blank"
8696 rel =" noopener noreferrer"
87- class =" link text-sm"
97+ class =" link text-sm inline-flex "
8898 >
8999 {{ $t('package.provenance_section.transparency_log_entry') }}
90100 </a >
0 commit comments