Skip to content

Commit 1c5cc0d

Browse files
committed
Update version list to use links for direct downloads and simplify the layout
1 parent 1c0fd01 commit 1c5cc0d

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

docs/en/repository/[name]/[id].md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -152,24 +152,13 @@ const latestVersion = computed(() => {
152152
<div :class="$style.versionsSection">
153153
<h2>Available Versions</h2>
154154
<div :class="$style.versionsList">
155-
<div v-for="(version, index) in versions" :key="index" :class="$style.versionItem">
155+
<a v-for="(version, index) in versions" :href="version.zipUrl" :key="index" :class="$style.versionItem">
156156
<div :class="$style.versionInfo">
157157
<span :class="$style.versionNumber">{{ version.version }}</span>
158158
<span :class="$style.versionCode">({{ version.versionCode }})</span>
159159
<span v-if="index === 0" :class="[$style.chip, $style.chipGreen]">Latest</span>
160160
</div>
161-
<VPButton
162-
:href="version.zipUrl"
163-
target="_blank"
164-
size="small"
165-
theme="alt"
166-
:class="$style.versionDownload"
167-
>
168-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24">
169-
<path fill="currentColor" d="M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7l7-7z"/>
170-
</svg>
171-
</VPButton>
172-
</div>
161+
</a>
173162
</div>
174163
</div>
175164

0 commit comments

Comments
 (0)