mirror of
				https://github.com/livebook-dev/livebook.git
				synced 2025-11-01 00:06:04 +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; |   @apply hidden; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| [phx-hook="VirtualizedLines"]:not(:hover) [data-el-clipcopy] { |  | ||||||
|   @apply hidden; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| /* === Session views === */ | /* === Session views === */ | ||||||
| 
 | 
 | ||||||
| [data-el-session][data-js-view="code-zen"] [data-el-view-toggle="code-zen"] { | [data-el-session][data-js-view="code-zen"] [data-el-view-toggle="code-zen"] { | ||||||
|  |  | ||||||
|  | @ -167,7 +167,6 @@ defmodule LivebookWeb.Hub.NewLive do | ||||||
| 
 | 
 | ||||||
|       <button |       <button | ||||||
|         class="icon-button ml-4" |         class="icon-button ml-4" | ||||||
|         data-el-clipcopy |  | ||||||
|         phx-click={JS.dispatch("lb:clipcopy", to: "#clipboard-code")} |         phx-click={JS.dispatch("lb:clipcopy", to: "#clipboard-code")} | ||||||
|         type="button" |         type="button" | ||||||
|       > |       > | ||||||
|  |  | ||||||
|  | @ -393,7 +393,6 @@ defmodule LivebookWeb.Output do | ||||||
|       <div class="absolute right-2 top-0 z-10 invisible group-hover/error:visible"> |       <div class="absolute right-2 top-0 z-10 invisible group-hover/error:visible"> | ||||||
|         <button |         <button | ||||||
|           class="icon-button bg-gray-100" |           class="icon-button bg-gray-100" | ||||||
|           data-el-clipcopy |  | ||||||
|           phx-click={JS.dispatch("lb:clipcopy", to: "##{@id}-message")} |           phx-click={JS.dispatch("lb:clipcopy", to: "##{@id}-message")} | ||||||
|         > |         > | ||||||
|           <.remix_icon icon="clipboard-line" class="text-lg" /> |           <.remix_icon icon="clipboard-line" class="text-lg" /> | ||||||
|  |  | ||||||
|  | @ -51,7 +51,7 @@ defmodule LivebookWeb.Output.TerminalTextComponent do | ||||||
|     ~H""" |     ~H""" | ||||||
|     <div |     <div | ||||||
|       id={@id} |       id={@id} | ||||||
|       class="relative" |       class="relative group/root" | ||||||
|       phx-hook="VirtualizedLines" |       phx-hook="VirtualizedLines" | ||||||
|       data-p-max-height={hook_prop(300)} |       data-p-max-height={hook_prop(300)} | ||||||
|       data-p-follow={hook_prop(true)} |       data-p-follow={hook_prop(true)} | ||||||
|  | @ -74,10 +74,9 @@ defmodule LivebookWeb.Output.TerminalTextComponent do | ||||||
|         phx-update="ignore" |         phx-update="ignore" | ||||||
|       > |       > | ||||||
|       </div> |       </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 |         <button | ||||||
|           class="icon-button bg-gray-100" |           class="icon-button bg-gray-100" | ||||||
|           data-el-clipcopy |  | ||||||
|           phx-click={JS.dispatch("lb:clipcopy", to: "##{@id}-template")} |           phx-click={JS.dispatch("lb:clipcopy", to: "##{@id}-template")} | ||||||
|         > |         > | ||||||
|           <.remix_icon icon="clipboard-line" class="text-lg" /> |           <.remix_icon icon="clipboard-line" class="text-lg" /> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue