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
@@ -1,7 +1,7 @@
<template> <template>
<Dialog v-model:open="isOpen"> <Dialog v-model:open="isOpen">
<DialogContent <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" :show-close-button="false"
@escape-key-down="handleDismiss" @escape-key-down="handleDismiss"
@pointer-down-outside="handleDismiss" @pointer-down-outside="handleDismiss"
+2 -4
View File
@@ -1,7 +1,7 @@
<template> <template>
<Dialog v-model:open="whatsNewDialog.visible"> <Dialog v-model:open="whatsNewDialog.visible">
<DialogContent <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" :show-close-button="false"
@escape-key-down="handleDismiss" @escape-key-down="handleDismiss"
@pointer-down-outside="handleDismiss" @pointer-down-outside="handleDismiss"
@@ -16,9 +16,7 @@
{{ t(whatsNewDialog.titleKey || 'onboarding.whatsnew.title') }} {{ t(whatsNewDialog.titleKey || 'onboarding.whatsnew.title') }}
</h2> </h2>
<p <p v-if="whatsNewDialog.subtitleKey" class="mt-1 text-[13px] text-muted-foreground">
v-if="whatsNewDialog.subtitleKey"
class="mt-1 text-[13px] text-muted-foreground">
{{ t(whatsNewDialog.subtitleKey) }} {{ t(whatsNewDialog.subtitleKey) }}
</p> </p>
</div> </div>
+13 -17
View File
@@ -207,25 +207,22 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
return true; return true;
} }
/** // function showLatestWhatsNewDialog() {
* @returns {boolean} // const release = getLatestWhatsNewRelease();
*/
function showLatestWhatsNewDialog() {
const release = getLatestWhatsNewRelease();
if (!release) { // if (!release) {
return false; // return false;
} // }
whatsNewDialog.value = { // whatsNewDialog.value = {
visible: true, // visible: true,
titleKey: release.titleKey, // titleKey: release.titleKey,
subtitleKey: release.subtitleKey, // subtitleKey: release.subtitleKey,
items: release.items.map((item) => ({ ...item })) // items: release.items.map((item) => ({ ...item }))
}; // };
return true; // return true;
} // }
function closeWhatsNewDialog() { function closeWhatsNewDialog() {
whatsNewDialog.value.visible = false; whatsNewDialog.value.visible = false;
@@ -556,7 +553,6 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
setBranch, setBranch,
showWhatsNewDialog, showWhatsNewDialog,
showLatestWhatsNewDialog,
closeWhatsNewDialog, closeWhatsNewDialog,
openChangeLogDialogOnly, openChangeLogDialogOnly,
checkForVRCXUpdate, checkForVRCXUpdate,