mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #1965 from appwrite/fix/remove-icons-sidebar-padding
Only show sidebar padding on project pages
This commit is contained in:
@@ -112,6 +112,9 @@
|
||||
let state: undefined | 'open' | 'closed' | 'icons' = 'closed';
|
||||
$: state = $isSidebarOpen ? 'open' : 'closed';
|
||||
|
||||
let isProjectPage;
|
||||
$: isProjectPage = $page.route?.id?.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