Add fonts and design
This commit is contained in:
@@ -41,19 +41,15 @@ defmodule WishWeb.HomeLive.Index do
|
||||
~H"""
|
||||
<div
|
||||
id={"dropdown-#{@item.id}"}
|
||||
class="absolute z-10 w-40 bg-white origin-top right-0 whitespace-nowrap p-1 border rounded"
|
||||
class="absolute z-10 w-40 bg-purple-100 origin-top right-0 whitespace-nowrap border border-black"
|
||||
phx-click-away={JS.hide()}
|
||||
hidden
|
||||
>
|
||||
<.link
|
||||
href={@item.url}
|
||||
class="block p-1 w-full border border-white hover:bg-slate-100 hover:border-black select-none"
|
||||
target="_blank"
|
||||
>
|
||||
<.link href={@item.url} class="block p-2 w-full hover:bg-purple-300 select-none" target="_blank">
|
||||
Go to URL
|
||||
</.link>
|
||||
<div
|
||||
class="block p-1 w-full border border-white hover:bg-slate-100 hover:border-black select-none cursor-pointer"
|
||||
class="block p-2 w-full hover:bg-purple-300 select-none cursor-pointer"
|
||||
phx-click={
|
||||
JS.push("toggle_received", value: %{"id" => @item.id})
|
||||
|> JS.hide(to: "#dropdown-#{@item.id}")
|
||||
|
||||
Reference in New Issue
Block a user