Disable animation when switching between organization overview page and projects

This commit is contained in:
ernstmul committed 2025-02-03 14:15:32 +01:00
1 parent 83e49e13c8
commit 2789e4c511
1 file changed
+9 -2
+9 -2
View File
@@ -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;
}