From 217de21605beca57f087921231ae929279071686 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Wed, 13 Sep 2023 12:21:26 +0200 Subject: [PATCH] fix(editor): Tweak hover area of workflow / cred cards (#7108) Context When a user is attempting to interact with a foreground action inside an entity card (workflow, credential, community node, logging destination), they might accidentally open that entity instead of interacting with a foreground action. For these card components, actions are always placed on right side. A/C Area around right "column" of entity cards (workflow, cred, community node, logging destination) should not be a hoverable area (that opens that entity when clicked). This area is roughly highlighted in screen shot below in orange. ![image](https://github.com/n8n-io/n8n/assets/5410822/0916bcd5-e972-4367-a862-41d2086a2334) --- .../src/components/N8nCard/Card.vue | 9 +++- .../src/components/CredentialCard.vue | 54 +++++++++++++------ .../EventDestinationCard.ee.vue | 27 +++++----- .../editor-ui/src/components/WorkflowCard.vue | 39 ++++++++------ 4 files changed, 82 insertions(+), 47 deletions(-) diff --git a/packages/design-system/src/components/N8nCard/Card.vue b/packages/design-system/src/components/N8nCard/Card.vue index 4d15d83a42..a922f78228 100644 --- a/packages/design-system/src/components/N8nCard/Card.vue +++ b/packages/design-system/src/components/N8nCard/Card.vue @@ -14,7 +14,7 @@ -
+
@@ -82,7 +82,6 @@ export default defineComponent({ .icon { width: 24px; - height: 24px; display: inline-flex; justify-content: center; align-items: center; @@ -101,4 +100,10 @@ export default defineComponent({ border-color: var(--color-primary); } } + +.append { + display: flex; + align-items: center; + cursor: default; +} diff --git a/packages/editor-ui/src/components/CredentialCard.vue b/packages/editor-ui/src/components/CredentialCard.vue index e96e49ce34..80ba4b5498 100644 --- a/packages/editor-ui/src/components/CredentialCard.vue +++ b/packages/editor-ui/src/components/CredentialCard.vue @@ -1,24 +1,26 @@