Navbar obscuring content: UI layout bug?

Is it just me or is your demo website's top navbar obscuring the actual pages/content without any offset to allow the user to access the content behind the navbar? In this example the title 'Account Information' is being obscured and the user cannot scroll further to reveal it.
No description
8 Replies
kapa.ai
kapa.ai•6mo ago
Hi @cassofthenight. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
MEE6
MEE6•6mo ago
Wohooo @cassofthenight, you just became a Waspeteer level 2!
kapa.ai
kapa.ai•6mo ago
---------------------- Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not contain information about a UI layout bug involving the navbar obscuring content on the Wasp demo website. For more information or to report a bug, you might want to check out the Wasp Github Issues (https://github.com/wasp-lang/wasp/issues) page. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @cassofthenight, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Vinny (@Wasp)
Vinny (@Wasp)•6mo ago
oh yeah you're right @cassofthenight hmm when did that happen? there used to be a generous offset between the navbar and content, which seems to have been changed at some point. ah i see. someone removed the sticky property from the navbar and I merged it without checking try adding sticky to line 29 of app/src/client/components/AppNavBar.tsx not sure if that's the behaviour you'd like, but it fixes the issue
cassofthenight
cassofthenightOP•6mo ago
<header className='absolute inset-x-0 top-0 z-50 shadow bg-white bg-opacity-50 backdrop-blur-lg backdrop-filter dark:border dark:border-gray-100/10 dark:bg-boxdark-2 position: sticky'>
<header className='absolute inset-x-0 top-0 z-50 shadow bg-white bg-opacity-50 backdrop-blur-lg backdrop-filter dark:border dark:border-gray-100/10 dark:bg-boxdark-2 position: sticky'>
Yes, this seems to have fixed it for now; thanks.
Vinny (@Wasp)
Vinny (@Wasp)•6mo ago
i believe you just want to add sticky without positon https://tailwindcss.com/docs/position#sticky-positioning-elements
Position - Tailwind CSS
Utilities for controlling how an element is positioned in the DOM.
cassofthenight
cassofthenightOP•6mo ago
Oh, shoot, you're right! I haven't used tailwind before 🫢 😊
Vinny (@Wasp)
Vinny (@Wasp)•6mo ago
no worries 🙂
Want results from more Discord servers?
Add your server