revert: Remove page transition animations

Page switching animations were not noticeable enough and felt unnecessary.
Keep only the login/logout fullscreen crossfade transitions which provide clear visual feedback for authentication state changes
This commit is contained in:
ZacharyZcR
2025-11-09 08:17:39 +08:00
parent aa94851f4a
commit 28406d060c

View File

@@ -178,15 +178,11 @@ function AppContent() {
className="h-screen w-full visible pointer-events-auto static overflow-hidden" className="h-screen w-full visible pointer-events-auto static overflow-hidden"
style={{ display: showTerminalView ? "block" : "none" }} style={{ display: showTerminalView ? "block" : "none" }}
> >
{showTerminalView && (
<div key={currentTab} className="animate-in fade-in slide-in-from-right-4 duration-300">
<AppView isTopbarOpen={isTopbarOpen} /> <AppView isTopbarOpen={isTopbarOpen} />
</div> </div>
)}
</div>
{showHome && ( {showHome && (
<div key={currentTab} className="h-screen w-full visible pointer-events-auto static overflow-hidden animate-in fade-in slide-in-from-right-4 duration-300"> <div className="h-screen w-full visible pointer-events-auto static overflow-hidden">
<Dashboard <Dashboard
onSelectView={handleSelectView} onSelectView={handleSelectView}
isAuthenticated={isAuthenticated} isAuthenticated={isAuthenticated}
@@ -198,7 +194,7 @@ function AppContent() {
)} )}
{showSshManager && ( {showSshManager && (
<div key={currentTab} className="h-screen w-full visible pointer-events-auto static overflow-hidden animate-in fade-in slide-in-from-right-4 duration-300"> <div className="h-screen w-full visible pointer-events-auto static overflow-hidden">
<HostManager <HostManager
onSelectView={handleSelectView} onSelectView={handleSelectView}
isTopbarOpen={isTopbarOpen} isTopbarOpen={isTopbarOpen}
@@ -209,13 +205,13 @@ function AppContent() {
)} )}
{showAdmin && ( {showAdmin && (
<div key={currentTab} className="h-screen w-full visible pointer-events-auto static overflow-hidden animate-in fade-in slide-in-from-right-4 duration-300"> <div className="h-screen w-full visible pointer-events-auto static overflow-hidden">
<AdminSettings isTopbarOpen={isTopbarOpen} /> <AdminSettings isTopbarOpen={isTopbarOpen} />
</div> </div>
)} )}
{showProfile && ( {showProfile && (
<div key={currentTab} className="h-screen w-full visible pointer-events-auto static overflow-auto animate-in fade-in slide-in-from-right-4 duration-300"> <div className="h-screen w-full visible pointer-events-auto static overflow-auto">
<UserProfile isTopbarOpen={isTopbarOpen} /> <UserProfile isTopbarOpen={isTopbarOpen} />
</div> </div>
)} )}