Skip to content

Commit

Permalink
fix: while disconnected, pages aren't centered properly
Browse files Browse the repository at this point in the history
  • Loading branch information
efstajas committed Jul 14, 2023
1 parent ad5ad95 commit 6d1b880
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/app/(app)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
</script>

<div class="main" in:fly={{ duration: 300, y: 16 }}>
<div class="main" class:disconnected={!$wallet.connected} in:fly={{ duration: 300, y: 16 }}>
<div class="page">
<PageTransition pathname={data.pathname}>
<div class:loading={$navigating}><slot /></div>
Expand Down Expand Up @@ -97,6 +97,11 @@
flex-direction: row-reverse;
gap: 2rem;
width: 100vw;
transition: gap 0.3s;
}
.main.disconnected {
gap: 0;
}
.header {
Expand Down

0 comments on commit 6d1b880

Please sign in to comment.