Enhance Step2EnvSetup.vue with modal transition effects for improved user experience

- Wrapped the profile detail modal in a Transition component to add smooth entry and exit animations.
- Introduced CSS styles for modal transitions, enhancing visual appeal and user engagement when displaying profile details.
This commit is contained in:
666ghj 2025-12-12 00:00:48 +08:00
parent fdbb0e2dc4
commit 65c1835879

View file

@ -499,9 +499,10 @@
</div> </div>
<!-- Profile Detail Modal --> <!-- Profile Detail Modal -->
<div v-if="selectedProfile" class="profile-modal-overlay" @click.self="selectedProfile = null"> <Transition name="modal">
<div class="profile-modal"> <div v-if="selectedProfile" class="profile-modal-overlay" @click.self="selectedProfile = null">
<div class="modal-header"> <div class="profile-modal">
<div class="modal-header">
<div class="modal-header-info"> <div class="modal-header-info">
<div class="modal-name-row"> <div class="modal-name-row">
<span class="modal-realname">{{ selectedProfile.realname }}</span> <span class="modal-realname">{{ selectedProfile.realname }}</span>
@ -581,7 +582,8 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</Transition>
<!-- Bottom Info / Logs --> <!-- Bottom Info / Logs -->
<div class="system-logs"> <div class="system-logs">
@ -2368,5 +2370,30 @@ onUnmounted(() => {
.hint-icon { .hint-icon {
font-size: 14px; font-size: 14px;
} }
/* Modal Transition */
.modal-enter-active,
.modal-leave-active {
transition: opacity 0.3s ease;
}
.modal-enter-from,
.modal-leave-to {
opacity: 0;
}
.modal-enter-active .profile-modal {
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-leave-active .profile-modal {
transition: all 0.3s ease-in;
}
.modal-enter-from .profile-modal,
.modal-leave-to .profile-modal {
transform: scale(0.95) translateY(10px);
opacity: 0;
}
</style> </style>