Adjustments

This commit is contained in:
2024-01-05 19:56:02 +00:00
parent ab298f9abb
commit ac111b8877
2 changed files with 45 additions and 40 deletions

View File

@@ -5,7 +5,7 @@ defmodule WishWeb.HomeLive.Index do
use Phoenix.Component
@impl true
def mount(_params, session, socket) do
def mount(_params, _session, socket) do
items =
if socket.assigns.current_user do
Wishlist.list_visible_items()
@@ -51,7 +51,7 @@ defmodule WishWeb.HomeLive.Index do
~H"""
<div
id={"dropdown-#{@item.id}"}
class="absolute z-10 w-40 bg-purple-100 origin-top right-0 whitespace-nowrap border border-black"
class="absolute z-10 w-auto bg-purple-100 origin-top right-0 whitespace-nowrap border border-black"
phx-click-away={JS.hide()}
hidden
>