some more fixes

This commit is contained in:
Harsh Mahajan
2026-03-24 18:50:39 +05:30
parent 83ba0d6422
commit 1464853589
3 changed files with 41 additions and 4 deletions
+2 -1
View File
@@ -108,6 +108,7 @@
}
$: currentOrg = organizations.find((org) => org.isSelected);
$: isProjectBlocked = currentProject?.status !== 'paused' && !!currentProject?.blocks?.length;
beforeNavigate(() => (showAccountMenu = false));
</script>
@@ -137,7 +138,7 @@
size="xs"
variant="secondary"
href={`${base}/project-${currentProject.region}-${currentProject.$id}/get-started`}
>Connect</Button.Anchor>
disabled={isProjectBlocked}>Connect</Button.Anchor>
</div>
{/if}
</div>
+23 -2
View File
@@ -233,7 +233,10 @@
class:has-transition={showContentTransition}
class:icons-content={state === 'icons' && selectedProject}
class:no-sidebar={!hasSidebarSpace}>
<section class="main-content" data-test={showSideNavigation}>
<section
class="main-content"
class:is-project-blocked={isProjectBlocked}
data-test={showSideNavigation}>
{#if $page.data?.header}
<div class="layout-header">
<svelte:component this={$page.data.header} />
@@ -241,7 +244,9 @@
{/if}
<slot />
{#if showFooter}
<slot name="footer" />
<div class="main-footer-slot" class:is-project-blocked={isProjectBlocked}>
<slot name="footer" />
</div>
{/if}
</section>
</div>
@@ -294,6 +299,22 @@
.main-content {
min-height: calc(100vh - 48px);
&.is-project-blocked {
display: flex;
flex-direction: column;
overflow: hidden;
}
}
.main-footer-slot {
&.is-project-blocked {
margin-top: auto;
position: sticky;
inset-block-end: 0;
z-index: 1;
background: var(--bgcolor-neutral-primary, #1d1d21);
}
}
.no-header {
@@ -169,10 +169,25 @@
min-height: 100%;
}
.project-layout.is-blocked {
display: flex;
flex: 1;
flex-direction: column;
flex: 1;
min-height: 0;
overflow: hidden;
}
.project-layout__content {
min-height: 100%;
}
.project-layout.is-blocked .project-layout__content {
flex: 1;
min-height: 0;
overflow: hidden;
}
.project-layout.is-blocked .project-layout__content {
filter: blur(3px);
opacity: 0.18;
@@ -183,7 +198,7 @@
.project-layout__overlay {
position: absolute;
inset: 0;
z-index: 200;
z-index: 5;
display: flex;
align-items: center;
justify-content: center;