Skip to content

Commit 5540be3

Browse files
authored
Adjust navbar scroll behavior and make build separator more subtle (#198)
1 parent f2b6a09 commit 5540be3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/components/data/SoftwareBuilds.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{#each builds.slice(0, 10) as build, idx (build.id)}
2525
{@const date = new Date(build.time)}
2626
<div>
27-
<div class="flex flex-row items-center px-4 py-2 transition-colors hover:bg-gray-200 dark:hover:bg-gray-800">
27+
<div class="flex flex-row items-center rounded-md px-4 py-2 transition-colors hover:bg-gray-200 dark:hover:bg-gray-800">
2828
<a
2929
role="button"
3030
href={build.downloads?.["server:default"]?.url}
@@ -51,7 +51,7 @@
5151
</div>
5252

5353
{#if idx < Math.min(builds.length, 10) - 1}
54-
<hr class="m-0 border border-gray-300 dark:border-gray-700" />
54+
<hr class="mx-0 my-0.5 bg-gray-300 dark:bg-gray-700" />
5555
{/if}
5656
</div>
5757
{/each}

src/components/layout/NavBar.astro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ import LogoMarkerLight from "@/assets/brand/logo-marker-light.svg";
5656
});
5757
window.addEventListener("scroll", () => {
5858
const wrapper = document.getElementById("nav-wrapper");
59-
wrapper?.classList?.toggle("bg-background-light-10", window.scrollY > 64);
60-
wrapper?.classList?.toggle("dark:bg-background-dark-90", window.scrollY > 64);
61-
wrapper?.classList?.toggle("shadow-lg", window.scrollY > 64);
59+
wrapper?.classList?.toggle("shadow-lg", window.scrollY > 1);
6260
});
6361
</script>

0 commit comments

Comments
 (0)