From a12e478e49d61afc93201c9bcc11c14206ef0161 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Thu, 2 Sep 2021 20:05:48 +0300 Subject: [PATCH] Add hovers on social links (#127) Signed-off-by: Alexander Platov --- .../src/components/ChannelsPresenter.svelte | 94 +++++++++++++++++-- .../src/components/icons/Copy.svelte | 8 ++ 2 files changed, 92 insertions(+), 10 deletions(-) create mode 100644 plugins/contact-resources/src/components/icons/Copy.svelte diff --git a/plugins/contact-resources/src/components/ChannelsPresenter.svelte b/plugins/contact-resources/src/components/ChannelsPresenter.svelte index b6aa036931..77b8d1c6dc 100644 --- a/plugins/contact-resources/src/components/ChannelsPresenter.svelte +++ b/plugins/contact-resources/src/components/ChannelsPresenter.svelte @@ -21,6 +21,7 @@ import type { Channel, ChannelProvider } from '@anticrm/contact' import { getClient } from '@anticrm/presentation' import { Icon } from '@anticrm/ui' +import IconCopy from './icons/Copy.svelte' import contact from '@anticrm/contact' @@ -65,40 +66,113 @@ let displayItems: Item[] = [] -
+
{}}> {#each displayItems as item} -
+
+
+
+
+
+
+
{item.label}
+
{item.value}
+
+
{ alert('Copied: ' + item.value) }}> + +
+
{/each}
diff --git a/plugins/contact-resources/src/components/icons/Copy.svelte b/plugins/contact-resources/src/components/icons/Copy.svelte new file mode 100644 index 0000000000..10398075dd --- /dev/null +++ b/plugins/contact-resources/src/components/icons/Copy.svelte @@ -0,0 +1,8 @@ + + + + +