mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-03-12 15:55:26 +08:00
Simplify terminal text clipboard icon
This commit is contained in:
parent
2acda5e4d6
commit
026af473ec
4 changed files with 2 additions and 9 deletions
|
@ -294,10 +294,6 @@ solely client-side operations.
|
|||
@apply hidden;
|
||||
}
|
||||
|
||||
[phx-hook="VirtualizedLines"]:not(:hover) [data-el-clipcopy] {
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
/* === Session views === */
|
||||
|
||||
[data-el-session][data-js-view="code-zen"] [data-el-view-toggle="code-zen"] {
|
||||
|
|
|
@ -167,7 +167,6 @@ defmodule LivebookWeb.Hub.NewLive do
|
|||
|
||||
<button
|
||||
class="icon-button ml-4"
|
||||
data-el-clipcopy
|
||||
phx-click={JS.dispatch("lb:clipcopy", to: "#clipboard-code")}
|
||||
type="button"
|
||||
>
|
||||
|
|
|
@ -393,7 +393,6 @@ defmodule LivebookWeb.Output do
|
|||
<div class="absolute right-2 top-0 z-10 invisible group-hover/error:visible">
|
||||
<button
|
||||
class="icon-button bg-gray-100"
|
||||
data-el-clipcopy
|
||||
phx-click={JS.dispatch("lb:clipcopy", to: "##{@id}-message")}
|
||||
>
|
||||
<.remix_icon icon="clipboard-line" class="text-lg" />
|
||||
|
|
|
@ -51,7 +51,7 @@ defmodule LivebookWeb.Output.TerminalTextComponent do
|
|||
~H"""
|
||||
<div
|
||||
id={@id}
|
||||
class="relative"
|
||||
class="relative group/root"
|
||||
phx-hook="VirtualizedLines"
|
||||
data-p-max-height={hook_prop(300)}
|
||||
data-p-follow={hook_prop(true)}
|
||||
|
@ -74,10 +74,9 @@ defmodule LivebookWeb.Output.TerminalTextComponent do
|
|||
phx-update="ignore"
|
||||
>
|
||||
</div>
|
||||
<div class="absolute right-2 top-0 z-10">
|
||||
<div class="absolute right-2 top-0 z-10 invisible group-hover/root:visible">
|
||||
<button
|
||||
class="icon-button bg-gray-100"
|
||||
data-el-clipcopy
|
||||
phx-click={JS.dispatch("lb:clipcopy", to: "##{@id}-template")}
|
||||
>
|
||||
<.remix_icon icon="clipboard-line" class="text-lg" />
|
||||
|
|
Loading…
Reference in a new issue