mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Disable animation when switching between organization overview page and projects
This commit is contained in:
1 parent
83e49e13c8
commit
2789e4c511
1 file changed
+9
-2
@@ -26,9 +26,11 @@
|
||||
|
||||
$: selectedProject = loadedProjects.find((project) => project.isSelected);
|
||||
let y: number;
|
||||
let showContentTransition = true;
|
||||
|
||||
page.subscribe(({ url }) => {
|
||||
$showSubNavigation = url.searchParams.get('openNavbar') === 'true';
|
||||
showContentTransition = !url.pathname.includes('organization');
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -115,6 +117,7 @@
|
||||
<SideNavigation bind:state bind:subNavigation />
|
||||
<div
|
||||
class="content"
|
||||
class:has-transition={showContentTransition}
|
||||
class:icons-content={state === 'icons'}
|
||||
class:no-sidebar={!showSideNavigation}>
|
||||
<section class="main-content" data-test={showSideNavigation}>
|
||||
@@ -149,9 +152,7 @@
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
width: 100%;
|
||||
|
||||
padding-left: 190px;
|
||||
transition: all 0.3s ease-in-out;
|
||||
|
||||
&.icons-content {
|
||||
padding-left: 54px;
|
||||
@@ -159,6 +160,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.has-transition {
|
||||
@media (min-width: 1024px) {
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
.no-sidebar {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user