Differentiate Preview and Stable

This commit is contained in:
Soitora 2023-09-01 00:04:35 +02:00
parent 19867fe2d1
commit a3798162f8
No known key found for this signature in database
GPG Key ID: A6D711EB4F2CCD97
2 changed files with 5 additions and 4 deletions

View File

@ -47,7 +47,7 @@ const downloadInformation = computed(() => ({
<span class="version">{{ downloadInformation.stable.tagName }}</span>
</a>
<a class="download-button secondary" :download="downloadInformation.preview.asset?.name" :href="downloadInformation.preview.asset?.browser_download_url">
<IconDownload />
<IconBugReport />
<span class="text">Preview</span>
<span class="version">{{ downloadInformation.preview.tagName }}</span>
</a>
@ -124,6 +124,7 @@ const downloadInformation = computed(() => ({
display: inline-block
vertical-align: middle
margin-right: 0.5em
font-size: 1.25em
}
.text {
@ -131,8 +132,7 @@ const downloadInformation = computed(() => ({
}
.version {
font-size: 12px
margin-left: 10px
font-size: 0.8em
}
}

View File

@ -14,7 +14,7 @@ import { VueQueryPlugin } from "@tanstack/vue-query";
import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client";
// Import Icon components
import { IconDownload, IconNewReleases } from "@iconify-prerendered/vue-mdi";
import { IconDownload, IconNewReleases, IconBugReport } from "@iconify-prerendered/vue-mdi";
export default {
...DefaultTheme,
@ -24,5 +24,6 @@ export default {
enhanceAppWithTabs(app);
app.component("IconDownload", IconDownload);
app.component("IconNewReleases", IconNewReleases);
app.component("IconBugReport", IconBugReport);
},
};