Skip to content

Feat(header): mobile nav#56

Merged
Kattenelvis merged 10 commits intoKattenelvis:devfrom
ynnxj:fix-mobile-nav
Feb 13, 2026
Merged

Feat(header): mobile nav#56
Kattenelvis merged 10 commits intoKattenelvis:devfrom
ynnxj:fix-mobile-nav

Conversation

@ynnxj
Copy link

@ynnxj ynnxj commented Dec 18, 2025

Moved header to bottom on mobile.
I removed the darkmode/lightmode button and notification button since it got pretty crowded.
Need to discuss was links to keep/remove/add.

@Kattenelvis Kattenelvis merged commit a2e62e0 into Kattenelvis:dev Feb 13, 2026
1 check failed
<button
on:click={() => functions[i]()}
class="bg-white w-full hover:bg-gray-300 active:bg-gray-400 dark:bg-slate-700 dark:hover:bg-slate-800 dark:active:bg-slate-900 py-2 px-4 hover:cursor-pointer transition-all whitespace-nowrap"
class="bg-white w-full hover:bg-gray-300 active:bg-gray-400 dark:bg-slate-700 dark:hover:bg-slate-800 dark:active:bg-slate-900 p-2 px-5 flex justify-between text-left hover:cursor-pointer transition-all"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why justify-between when there's only a single element? Perhaps for centering, but you used text-left too?

<Loader bind:loading>
<div
class={`sticky ${results ? 'md:-top-[1rem]' : 'top-[7.6rem] md:top-[5.5rem]'}`}
class={`sticky ${results ? 'md:-top-[1rem]' : 'top-0 md:top-[5.5rem]'}`}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this doens't lead to issues in Date Poll when scrolling?


<header
class="sticky top-0 z-50 md:flex justify-between flex-row items-center p-1.5 px-3 bg-white shadow select-none dark:bg-darkobject"
class="md:sticky md:top-0 fixed bottom-0 w-full z-50 md:flex justify-between flex-row items-center p-1.5 px-3 bg-white select-none dark:bg-darkobject shadow-[0_1px_5px_rgba(0,0,0,0.15)] md:shadow"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use custom shadow?

<div class="mr-5 flex gap-4 items-center">
<button
class="dark:text-darkmodeText cursor-pointer pl-2"
title={`Enable ${$darkModeStore ? 'lightmode' : 'darkmode'}`}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want aria-label aswell for accessibility?

{:else}
<Fa icon={faMoon} size={'1.3x'} />
{/if}
{#if !$isMobile}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do both have such similar code? What about moving this conditional further down and reduce code duplication?


@media (max-width: 768px) {
.active-icon::after {
top: -2.2rem;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kinda ugly hard-coded 2.2rem, might not be good

import { notifications as notificationLimit } from '$lib/Generic/APILimits.json';
import { darkModeStore } from '$lib/Generic/DarkMode';
import { ErrorHandlerStore } from '$lib/Generic/ErrorHandlerStore';
import { N } from 'ethers';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might clash with what the blockchain dev is doing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants