mirror of
https://github.com/vrcx-team/VRCX.git
synced 2026-04-06 00:32:02 +02:00
adjust onboard dialog ui
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<Dialog v-model:open="isOpen">
|
||||
<DialogContent
|
||||
class="border border-border bg-background/85 shadow-lg backdrop-blur-xl backdrop-saturate-[1.4] sm:max-w-3xl"
|
||||
class="border border-border bg-background/85 shadow-lg backdrop-blur-xl backdrop-saturate-[1.4] sm:max-w-2xl"
|
||||
:show-close-button="false"
|
||||
@escape-key-down="handleDismiss"
|
||||
@pointer-down-outside="handleDismiss"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<Dialog v-model:open="whatsNewDialog.visible">
|
||||
<DialogContent
|
||||
class="border border-border bg-background/88 p-5 shadow-lg backdrop-blur-xl backdrop-saturate-[1.4] sm:max-w-3xl"
|
||||
class="border border-border bg-background/88 p-5 shadow-lg backdrop-blur-xl backdrop-saturate-[1.4] sm:max-w-2xl"
|
||||
:show-close-button="false"
|
||||
@escape-key-down="handleDismiss"
|
||||
@pointer-down-outside="handleDismiss"
|
||||
@@ -16,9 +16,7 @@
|
||||
{{ t(whatsNewDialog.titleKey || 'onboarding.whatsnew.title') }}
|
||||
</h2>
|
||||
|
||||
<p
|
||||
v-if="whatsNewDialog.subtitleKey"
|
||||
class="mt-1 text-[13px] text-muted-foreground">
|
||||
<p v-if="whatsNewDialog.subtitleKey" class="mt-1 text-[13px] text-muted-foreground">
|
||||
{{ t(whatsNewDialog.subtitleKey) }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -207,25 +207,22 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function showLatestWhatsNewDialog() {
|
||||
const release = getLatestWhatsNewRelease();
|
||||
// function showLatestWhatsNewDialog() {
|
||||
// const release = getLatestWhatsNewRelease();
|
||||
|
||||
if (!release) {
|
||||
return false;
|
||||
}
|
||||
// if (!release) {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
whatsNewDialog.value = {
|
||||
visible: true,
|
||||
titleKey: release.titleKey,
|
||||
subtitleKey: release.subtitleKey,
|
||||
items: release.items.map((item) => ({ ...item }))
|
||||
};
|
||||
// whatsNewDialog.value = {
|
||||
// visible: true,
|
||||
// titleKey: release.titleKey,
|
||||
// subtitleKey: release.subtitleKey,
|
||||
// items: release.items.map((item) => ({ ...item }))
|
||||
// };
|
||||
|
||||
return true;
|
||||
}
|
||||
// return true;
|
||||
// }
|
||||
|
||||
function closeWhatsNewDialog() {
|
||||
whatsNewDialog.value.visible = false;
|
||||
@@ -556,7 +553,6 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
||||
setBranch,
|
||||
|
||||
showWhatsNewDialog,
|
||||
showLatestWhatsNewDialog,
|
||||
closeWhatsNewDialog,
|
||||
openChangeLogDialogOnly,
|
||||
checkForVRCXUpdate,
|
||||
|
||||
Reference in New Issue
Block a user