From 4ca660504e1dffa0d3624272403e74ab073b7e6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Mon, 5 Jun 2023 18:04:19 +0200 Subject: [PATCH] Make all copy command to clipboard instances consistent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rūdolfs Ošiņš --- src/components/Clipboard.svelte | 3 -- src/components/Command.svelte | 45 +++++++++++++++++++++-- src/views/projects/CloneButton.svelte | 53 ++------------------------- 3 files changed, 44 insertions(+), 57 deletions(-) diff --git a/src/components/Clipboard.svelte b/src/components/Clipboard.svelte index 3b4df10e5..8026077ad 100644 --- a/src/components/Clipboard.svelte +++ b/src/components/Clipboard.svelte @@ -44,9 +44,6 @@ .clipboard:hover :global(svg) { fill: var(--color-foreground); } - .clipboard:active :global(svg) { - fill: var(--color-foreground-6); - } .clipboard:hover { border-radius: var(--border-radius); } diff --git a/src/components/Command.svelte b/src/components/Command.svelte index a4443e073..c40c6434b 100644 --- a/src/components/Command.svelte +++ b/src/components/Command.svelte @@ -2,6 +2,7 @@ import Clipboard from "@app/components/Clipboard.svelte"; export let command: string; + export let color: "caution" | "foreground" = "foreground";
-
{command}
- +
+ {command} +
+ +
+
diff --git a/src/views/projects/CloneButton.svelte b/src/views/projects/CloneButton.svelte index 9dc819669..7c6bb6510 100644 --- a/src/views/projects/CloneButton.svelte +++ b/src/views/projects/CloneButton.svelte @@ -1,11 +1,10 @@