Skip to content
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

Merged
merged 5 commits into from
Apr 29, 2024

Conversation

NduatiK
Copy link
Contributor

@NduatiK NduatiK commented Apr 29, 2024

No description provided.

@@ -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
Copy link
Contributor Author

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 %>
Copy link
Contributor Author

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

Comment on lines +57 to +60
def mount(socket) do
{:ok, assign(socket, :open, false)}
end

Copy link
Contributor Author

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

@zachdaniel zachdaniel merged commit fe789b1 into ash-project:main Apr 29, 2024
15 checks passed
@zachdaniel
Copy link
Contributor

🚀 Thank you for your contribution! 🚀

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