From 98c7e8353a515fc1b056c63e2f8f7ae6a6f1b1c1 Mon Sep 17 00:00:00 2001 From: Roberto Guido Date: Wed, 15 Jul 2026 01:09:52 +0200 Subject: [PATCH] fix: actions menu for envelope Signed-off-by: Roberto Guido --- src/components/EnvelopeSingleClickActions.vue | 8 +- src/components/EnvelopeSkeleton.vue | 115 +++++------------- 2 files changed, 32 insertions(+), 91 deletions(-) diff --git a/src/components/EnvelopeSingleClickActions.vue b/src/components/EnvelopeSingleClickActions.vue index 895dda4eda..72c3e46f91 100644 --- a/src/components/EnvelopeSingleClickActions.vue +++ b/src/components/EnvelopeSingleClickActions.vue @@ -77,13 +77,9 @@ export default { diff --git a/src/components/EnvelopeSkeleton.vue b/src/components/EnvelopeSkeleton.vue index 079c3ce087..378908b6b2 100644 --- a/src/components/EnvelopeSkeleton.vue +++ b/src/components/EnvelopeSkeleton.vue @@ -31,11 +31,10 @@ :href="routerLinkHref || href" :target="target || (href === '#' ? undefined : '_blank')" :rel="href === '#' ? undefined : 'noopener noreferrer'" - @focus="showActions" + @focus="handleMouseover" @focusout="handleBlur" @click="onClick($event, navigate, routerLinkHref)" - @contextmenu.prevent - @keydown.esc="hideActions"> + @contextmenu.prevent> @@ -73,7 +72,6 @@
-
+
{ + this.menuOpen = e + this.$emit('update:menuOpen', e) + }) }, // Check if subname and actions slots are populated @@ -454,10 +414,6 @@ export default { .list-item-details__details { color: var(--color-primary-element-text); } - - .list-item-content__quick-actions :deep(svg) { - fill: var(--color-primary-element-text) !important; - } } .list-item-content__name, .list-item-content__subname, @@ -510,10 +466,6 @@ export default { box-shadow: 0 0 0 4px var(--color-main-background); } - &__hoverable { - visibility: hidden; - } - .list-item-content { display: flex; flex-direction: column; @@ -702,20 +654,17 @@ export default { } -.list-item:hover { - .list-item__hoverable { - visibility: visible; - position: absolute; - display: flex; - background: var(--color-main-background); - border-radius: var(--border-radius-element); - box-shadow: 0 0 4px 0 var(--color-box-shadow); - height: var(--default-clickable-area); - inset-inline-end: var(--default-grid-baseline); - - :deep(svg) { - fill: var(--color-main-text) !important; // needed to not inherit active styling - } +.list-item__hoverable { + position: absolute; + display: flex; + background: var(--color-main-background); + border-radius: var(--border-radius-element); + box-shadow: 0 0 4px 0 var(--color-box-shadow); + height: var(--default-clickable-area); + inset-inline-end: var(--default-grid-baseline); + + :deep(svg) { + fill: var(--color-main-text) !important; // needed to not inherit active styling } } @@ -732,8 +681,4 @@ export default { height: calc(var(--header-menu-item-height) - 4px); width: calc(var(--header-menu-item-height) - 4px); } - -.extra--hidden { - visibility: hidden; -}