-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Guides" menu overflow on small screen #241
Comments
Hi. I found the source code generating the
<div
ref={subnavEl}
onmouseenter={closeSubnav.clear}
onmouseleave={closeSubnav}
class="absolute left-50 bg-gray-200 dark:bg-solid-darkLighterBg shadow-2xl max-w-sm transition duration-750"
style={{ left: `${screen.width > 768 ? subnavPosition() : 0}px` }}
>
<ul class="divide-x divide-transparent flex flex-col">
<For each={subnav()}>
{(link) => (
<li
class="px-5 hover:bg-solid-default hover:text-white transition duration-300"
style={
link.direction && {
direction: link.direction,
'text-align': link.direction === 'ltr' ? 'left' : 'right',
}
}
>
<NavLink
onClick={() => setSubnav([])}
class="px-6 py-5 w-full block"
href={link.path}
>
{link.title}
<Show when={link.description}>
<span class="block text-sm text-gray-400">{link.description}</span>
</Show>
</NavLink>
</li>
)}
</For>
</ul>
</div> It looks like the I also tried adding |
I believe this issue should be raised on the solid-site repo, https://github.com/solidjs/solid-site |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've recoreded a little video that shows the issue better than words: https://drive.google.com/file/d/1m0EFTjuE3_6CMyX-lPLFbulGgXalqE-q/view?usp=share_link
The text was updated successfully, but these errors were encountered: