diff --git a/src/lib/components/event/event-details-row-expanded.svelte b/src/lib/components/event/event-details-row-expanded.svelte index 7b0ade9da..1075ae081 100644 --- a/src/lib/components/event/event-details-row-expanded.svelte +++ b/src/lib/components/event/event-details-row-expanded.svelte @@ -2,7 +2,7 @@ import { page } from '$app/stores'; import CodeBlock from '$lib/holocene/code-block.svelte'; - import Copyable from '$lib/holocene/copyable.svelte'; + import Copyable from '$lib/holocene/copyable/index.svelte'; import Link from '$lib/holocene/link.svelte'; import { translate } from '$lib/i18n/translate'; import { format } from '$lib/utilities/format-camel-case'; diff --git a/src/lib/components/event/event-details-row.svelte b/src/lib/components/event/event-details-row.svelte index e3545557f..b3041cecf 100644 --- a/src/lib/components/event/event-details-row.svelte +++ b/src/lib/components/event/event-details-row.svelte @@ -2,7 +2,7 @@ import { page } from '$app/stores'; import CodeBlock from '$lib/holocene/code-block.svelte'; - import Copyable from '$lib/holocene/copyable.svelte'; + import Copyable from '$lib/holocene/copyable/index.svelte'; import Link from '$lib/holocene/link.svelte'; import { translate } from '$lib/i18n/translate'; import { format } from '$lib/utilities/format-camel-case'; @@ -52,7 +52,7 @@ copyIconTitle={translate('copy-icon-title')} copySuccessIconTitle={translate('copy-success-icon-title')} content={value} - container-class="xl:flex-row h-12 pr-1" + container-class="xl:flex-row" > - import Copyable from '$lib/holocene/copyable.svelte'; + import Copyable from '$lib/holocene/copyable/index.svelte'; import Link from '$lib/holocene/link.svelte'; import TableHeaderRow from '$lib/holocene/table/table-header-row.svelte'; import TableRow from '$lib/holocene/table/table-row.svelte'; diff --git a/src/lib/components/workflow/parent-workflow-table.svelte b/src/lib/components/workflow/parent-workflow-table.svelte index ee64c9d3a..360975f08 100644 --- a/src/lib/components/workflow/parent-workflow-table.svelte +++ b/src/lib/components/workflow/parent-workflow-table.svelte @@ -1,5 +1,5 @@ - -{#if clickAllToCopy} - -{:else} -
- - {content} - - - copy(e, content)} - class={`${visible ? 'visible' : 'invisible group-hover:visible'}`} - icon={$copied ? 'checkmark' : 'copy'} - label={$copied ? copySuccessIconTitle : copyIconTitle} - /> -
-{/if} diff --git a/src/lib/holocene/copyable/button.svelte b/src/lib/holocene/copyable/button.svelte new file mode 100644 index 000000000..07e122d90 --- /dev/null +++ b/src/lib/holocene/copyable/button.svelte @@ -0,0 +1,32 @@ + + + + + diff --git a/src/lib/holocene/copyable/index.svelte b/src/lib/holocene/copyable/index.svelte new file mode 100644 index 000000000..3f57a7a03 --- /dev/null +++ b/src/lib/holocene/copyable/index.svelte @@ -0,0 +1,52 @@ + + +{#if clickAllToCopy} + +{:else} +
+ + {content} + + +
+{/if} diff --git a/src/lib/holocene/link.svelte b/src/lib/holocene/link.svelte index 6296c35dc..8d6e40a22 100644 --- a/src/lib/holocene/link.svelte +++ b/src/lib/holocene/link.svelte @@ -26,7 +26,7 @@ {href} target={newTab ? '_blank' : null} rel={newTab ? 'noreferrer' : null} - class="link {className}" + class="link {icon ? 'inline-flex' : 'inline'} {className}" class:active on:click {...$$restProps} @@ -39,7 +39,7 @@