From: skjnldsv Date: Wed, 31 Jul 2024 13:12:49 +0000 (+0200) Subject: fix(core): app menu label position and animation X-Git-Tag: v30.0.0beta3~29^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=937bb4a539512eba51dbff6475260ddb3ae35cd1;p=nextcloud-server.git fix(core): app menu label position and animation Signed-off-by: skjnldsv --- diff --git a/core/src/components/AppMenuEntry.vue b/core/src/components/AppMenuEntry.vue index d26e0c1dc06..a16962ca0ef 100644 --- a/core/src/components/AppMenuEntry.vue +++ b/core/src/components/AppMenuEntry.vue @@ -61,10 +61,10 @@ defineProps<{ text-align: center; bottom: 0; left: 50%; + top: 50%; display: block; min-width: 100%; transform: translateX(-50%); - transition: all 0.1s ease-in-out; width: 100%; text-overflow: ellipsis; overflow: hidden; @@ -84,21 +84,26 @@ defineProps<{ pointer-events: none; border-bottom-color: var(--color-main-background); transform: translateX(-50%); - width: 12px; + width: 10px; height: 5px; border-radius: 3px; background-color: var(--color-background-plain-text); left: 50%; - bottom: 6px; + bottom: 8px; display: block; transition: all 0.1s ease-in-out; opacity: 1; } } + &__icon, + &__label { + transition: all 0.1s ease-in-out; + } + // Make the hovered entry bold to see that it is hovered - &:hover &__label, - &:focus-within &__label { + &:hover .app-menu-entry__label, + &:focus-within .app-menu-entry__label { font-weight: bold; } } @@ -106,22 +111,22 @@ defineProps<{