Skip to content

Commit

Permalink
Simplify clipboard copy transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Feb 13, 2024
1 parent 3fea38b commit eac07a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/livebook_web/components/app_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
2 changes: 1 addition & 1 deletion lib/livebook_web/live/hub/edit/team_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit eac07a4

Please sign in to comment.