feat: mobile behaviour second sidenav

This commit is contained in:
tglide committed 2023-03-09 12:43:04 +00:00
1 parent ecb0d823bb
commit 5006612a9c
2 files changed
+20 -10

No files matched your search

+13 -9
View File
@@ -19,7 +19,7 @@
}
</script>
<div class="side-nav" class:hasSecondSideNav>
<div class="side-nav" class:hasSecondSideNav class:is-open-level-2={hasSecondSideNav}>
<div class="side-nav-level-1" class:is-narrow={narrow}>
{#if project}
<div class="side-nav-main">
@@ -32,7 +32,8 @@
`${projectPath}/overview`
)}
on:click={() => trackEvent('click_menu_overview')}
href={projectPath}>
href={projectPath}
title="Overview">
<span class="icon-chart-bar" aria-hidden="true" />
<span class="text">Overview</span>
</a>
@@ -44,7 +45,8 @@
`${projectPath}/auth`
)}
on:click={() => trackEvent('click_menu_auth')}
href={`${projectPath}/auth`}>
href={`${projectPath}/auth`}
title="Auth">
<span class="icon-user-group" aria-hidden="true" />
<span class="text">Auth</span>
</a>
@@ -56,7 +58,8 @@
`${projectPath}/databases`
)}
on:click={() => trackEvent('click_menu_databases')}
href={`${projectPath}/databases`}>
href={`${projectPath}/databases`}
title="Databases">
<span class="icon-database" aria-hidden="true" />
<span class="text">Databases</span>
</a>
@@ -68,7 +71,8 @@
`${projectPath}/functions`
)}
on:click={() => trackEvent('click_menu_functions')}
href={`${projectPath}/functions`}>
href={`${projectPath}/functions`}
title="Functions">
<span class="icon-lightning-bolt" aria-hidden="true" />
<span class="text">Functions</span>
</a>
@@ -80,7 +84,8 @@
`${projectPath}/storage`
)}
on:click={() => trackEvent('click_menu_storage')}
href={`${projectPath}/storage`}>
href={`${projectPath}/storage`}
title="Storage">
<span class="icon-folder" aria-hidden="true" />
<span class="text">Storage</span>
</a>
@@ -95,9 +100,8 @@
class="drop-button"
href={`${projectPath}/settings`}
on:click={() => trackEvent('click_menu_settings')}
class:is-selected={$page.url.pathname.startsWith(
`${projectPath}/settings`
)}>
class:is-selected={$page.url.pathname.startsWith(`${projectPath}/settings`)}
title="Settings">
<span class="icon-cog" aria-hidden="true" />
<span class="text">Settings</span>
</a>
@@ -13,7 +13,13 @@
</script>
<section class="drop-section u-flex-vertical u-gap-8">
<h5 class="eyebrow-heading-3 u-padding-block-12">Collections</h5>
<a
class="u-flex u-cross-center u-sep-block-end u-padding-block-12 is-not-desktop"
href={`${base}/console/project-${project}/databases/database-${databaseId}`}>
<span class="icon-cheveron-left" aria-hidden="true" />
<h5 class="eyebrow-heading-3 u-margin-inline-auto">Collections</h5>
</a>
<h5 class="eyebrow-heading-3 u-padding-block-12 is-not-mobile">Collections</h5>
<button
class="button is-text is-full-width u-main-start u-padding-inline-0"
on:click={() => ($showCreate = true)}>