From e43c58a9555b6a241455a11f7671d0e72c37bdfd Mon Sep 17 00:00:00 2001 From: CenTdemeern1 Date: Thu, 3 Oct 2024 16:55:24 +0200 Subject: [PATCH] Simplify the getDecorationZIndex function --- packages/frontend/src/components/global/MkAvatar.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/frontend/src/components/global/MkAvatar.vue b/packages/frontend/src/components/global/MkAvatar.vue index ce6985d907..e9df7083e3 100644 --- a/packages/frontend/src/components/global/MkAvatar.vue +++ b/packages/frontend/src/components/global/MkAvatar.vue @@ -115,8 +115,7 @@ function getDecorationOffset(decoration: Omit) { - const zIndex = decoration.showBelow ? 0 : 1; - return zIndex === 1 ? undefined : `${zIndex}`; + return decoration.showBelow ? '0' : undefined; } const color = ref();