From 05cb02cb85aca462c3b199d140056404f5922ae8 Mon Sep 17 00:00:00 2001 From: mertmit Date: Fri, 19 Aug 2022 19:54:18 +0300 Subject: [PATCH] fix(gui-v2): view list active class Signed-off-by: mertmit --- .../components/smartsheet/sidebar/MenuTop.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue index c44cab3799..c8eee24f23 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue @@ -180,11 +180,11 @@ function onDeleted() { :view="view" :on-validate="validate" class="transition-all ease-in duration-300" - :class="[ - isMarked === view.id ? 'bg-gray-200' : '', - route.params.viewTitle && route.params.viewTitle.includes(view.title) ? 'active' : '', - `nc-view-item nc-${view.type}-view-item`, - ]" + :class="{ + 'bg-gray-100': isMarked === view.id, + 'active': route.params.viewTitle && route.params.viewTitle === view.title, + [`nc-view-item nc-${view.type}-view-item`]: true, + }" @change-view="changeView" @open-modal="$emit('openModal', $event)" @delete="onDelete"