From 0d1434646b6f30d4e00423012b686a9f5039bc2c Mon Sep 17 00:00:00 2001 From: Robert Kossessa Date: Wed, 24 Jan 2024 15:43:29 +0100 Subject: [PATCH] ADD: Profile count indicators --- src/components/ProfileManager.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/ProfileManager.vue b/src/components/ProfileManager.vue index e014c66..b31e867 100644 --- a/src/components/ProfileManager.vue +++ b/src/components/ProfileManager.vue @@ -4,7 +4,8 @@ class="px-4 h-20 flex items-center">

- {{ $t(`profiles.title`) }} + {{ $t(`profiles.title`) }} ({{ profiles.length }}/{{ maxProfiles + }})

{{ $t(`profiles.subtitle`) }} @@ -37,12 +38,12 @@ :open="collapse[profileTag]"> + class="w-full h-12 py-2 text-left text-muted-foreground text-sm hover:bg-zinc-900"> - {{ profileTag }} (TAG) + {{ profileTag }} ({{ tagProfiles.length }}) -

+
-
@@ -71,6 +71,8 @@ import { CollapsibleTrigger, } from '@/components/ui/collapsible' +const maxProfiles = 32 + const profiles = ref([]) const filter = ref('') const collapse = ref({}) @@ -116,6 +118,7 @@ onMounted(() => { [data-state=open] > .chevrot { transform: rotate(90deg); } + .profile-row:hover .delete-button { display: flex; }