Simplify clipboard copy transitions

This commit is contained in:
Jonatan Kłosko 2024-02-13 17:21:59 +07:00
parent 3fea38be80
commit eac07a4c39
3 changed files with 3 additions and 3 deletions

View file

@ -213,7 +213,7 @@ defmodule LivebookWeb.AppComponents do
aria-label="copy to clipboard"
phx-click={
JS.dispatch("lb:clipcopy", to: "#dockerfile-source")
|> JS.add_class("", transition: {"tooltip top", "", ""}, time: 2000)
|> JS.transition("tooltip top", time: 2000)
}
>
<.remix_icon icon="clipboard-line" />

View file

@ -303,7 +303,7 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do
aria-label="copy to clipboard"
phx-click={
JS.dispatch("lb:clipcopy", to: "#teams-key")
|> JS.add_class("", transition: {"tooltip left", "", ""}, time: 2000)
|> JS.transition("tooltip top", time: 2000)
}
>
<.button color="gray" small type="button">

View file

@ -30,7 +30,7 @@ defmodule LivebookWeb.Hub.Teams.AgentKeyListComponent do
aria-label="copy to clipboard"
phx-click={
JS.dispatch("lb:clipcopy", to: "#agent-key-#{agent_key.id}")
|> JS.add_class("", transition: {"tooltip left", "", ""}, time: 2000)
|> JS.transition("tooltip top", time: 2000)
}
>
<.button color="gray" small type="button">