mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-12-29 19:20:46 +08:00
Simplify clipboard copy transitions
This commit is contained in:
parent
3fea38be80
commit
eac07a4c39
3 changed files with 3 additions and 3 deletions
|
@ -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" />
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue