-
Notifications
You must be signed in to change notification settings - Fork 49
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
Fix TopNav when in mobile view (size < md) #128
Conversation
@@ -103,12 +103,12 @@ defmodule AshAdmin.Components.TopNav do | |||
<div :if={@open} class="md:hidden" x-cloak> | |||
<div class="relative px-2 pt-2 pb-3 sm:px-3"> | |||
<div class="block px-4 py-2 text-sm"> | |||
<.live_component | |||
<ActorSelect.actor_select |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ActorSelect
is a function component not a live component
@@ -46,14 +46,18 @@ defmodule AshAdmin.Components.TopNav.DrawerDropdown do | |||
class="block px-4 py-2 text-sm hover:bg-gray-200 hover:text-gray-900" | |||
role="menuitem" | |||
> | |||
{link.text} | |||
<%= link.text %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the surface format
def mount(socket) do | ||
{:ok, assign(socket, :open, false)} | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@open
requires a default value
🚀 Thank you for your contribution! 🚀 |
No description provided.