Skip to content

Commit

Permalink
fix z-index issues on hp
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Jan 28, 2025
1 parent 5408e1a commit def29e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/gui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nostrwatch/gui",
"description": "",
"version": "0.6.34",
"version": "0.6.35",
"license": "MIT",
"keywords": [
"svelte",
Expand Down
2 changes: 1 addition & 1 deletion apps/gui/src/lib/components/layout/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<style>
#site-header {
@apply fixed top-0 right-0 left-0 flex items-center h-16 bg-black/25 dark:bg-white/25 backdrop-blur-lg text-white dark:text-black z-[8999];
@apply fixed top-0 right-0 left-0 flex items-center h-16 bg-black/25 dark:bg-white/25 backdrop-blur-lg text-white dark:text-black z-[999];
}
#site-header h1 {
Expand Down
10 changes: 6 additions & 4 deletions apps/gui/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

{#if isHomepage}
{#if loadedEnough}
<section class="h-[420px] bg-black/5 dark:bg-white/5 flex flex-col justify-center items-center">
<section class="h-[420px] bg-black/5 dark:bg-white/5 flex flex-col justify-center items-center relative z-[200]">
<h1 class="w-full text-center text-3xl mb-4">nostr.watch is a client for browsing nostr relays.</h1>
<div class="w-full max-w-xl">
<AutoSuggestRelaysCompact
Expand All @@ -37,13 +37,15 @@
focus:outline-none focus:border-transparent focus:ring-0"
resultWrapperClass="
result-wrapper
shadow-md absolute top-full -mt-8 left-0 right-0 z-9999 backdrop-blur-lg border border-white/10 dark:bg-black/60 dark:border-white/10"
shadow-md absolute top-full -mt-8
left-0 right-0 z-9999 backdrop-blur-lg
border border-white/10 dark:bg-black/60 dark:border-white/10"
/>
</div>
</section>
<Counts />
{:else}
<div class="flex flex-col items-center justify-center h-screen">
<div class="flex flex-col items-center justify-center h-screen relative z-[100]">
<!-- <div class="text-2xl h-[420px] align-middle bg-black/10 dark:bg-white/10 mb-4">[ loading graphic ]</div> -->
<ActivityList />
</div>
Expand All @@ -53,6 +55,6 @@

<style lang="postcss" global>
.result-wrapper > div {
@apply rounded-sm bg-gradient-to-b from-black/100 to-black/0;
@apply rounded-sm bg-transparent bg-gradient-to-b from-black/90 to-black/0;
}
</style>

0 comments on commit def29e6

Please sign in to comment.