Skip to content

Commit

Permalink
Fix weird scrolling caused by sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPower committed Nov 8, 2023
1 parent f97a38f commit fa47cfe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
@media (max-width: 600px) {
.sidebar {
position: absolute;
position: fixed;
left: -100%;
width: 100%;
height: 100%;
Expand All @@ -129,5 +129,8 @@
left: 0;
opacity: 100%;
}
.topbar {
padding: 0.75rem;
}
}
</style>
8 changes: 3 additions & 5 deletions src/routes/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,17 @@
<a href="/" on:click={close}>Today</a>
<a href="/agenda" on:click={close}>Agenda</a>
</nav>
<div class="gradient" />

<style>
nav {
background: wheat;
padding: 1rem;
height: 100%;
}
nav {
display: flex;
flex-direction: column;
gap: 1rem;
height: 100%;
}
nav a {
padding: 1rem;
color: black;
text-decoration: none;
}
Expand Down

0 comments on commit fa47cfe

Please sign in to comment.