adjust onboard dialog ui

This commit is contained in:
pa
2026-03-30 08:00:44 +09:00
parent 2511fc080d
commit e156bdfee8
3 changed files with 16 additions and 22 deletions

View File

@@ -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"

View File

@@ -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>

View File

@@ -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,