mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Only show sidebar padding on project pages
This commit is contained in:
1 parent
d5e00ffd83
commit
7dadf0eed9
1 file changed
+4
-1
@@ -112,6 +112,9 @@
|
||||
let state: undefined | 'open' | 'closed' | 'icons' = 'closed';
|
||||
$: state = $isSidebarOpen ? 'open' : 'closed';
|
||||
|
||||
let isProjectPage;
|
||||
$: isProjectPage = $page.url.pathname.includes('project-');
|
||||
|
||||
function handleResize() {
|
||||
$isSidebarOpen = false;
|
||||
showAccountMenu = false;
|
||||
@@ -156,7 +159,7 @@
|
||||
<div
|
||||
class="content"
|
||||
class:has-transition={showContentTransition}
|
||||
class:icons-content={state === 'icons'}
|
||||
class:icons-content={state === 'icons' && isProjectPage}
|
||||
class:no-sidebar={!showSideNavigation}>
|
||||
<section class="main-content" data-test={showSideNavigation}>
|
||||
{#if $page.data?.header}
|
||||
|
||||
Reference in new issue
Block a user