Open source personal finance application
refactor(categories): unify parent display in CategoriesName
Ilya Komichev44a4eb7be0f9
diff --git a/app/components/categories/Name.vue b/app/components/categories/Name.vueindex f029b139..bb2b5abd 100644--- a/app/components/categories/Name.vue+++ b/app/components/categories/Name.vue@@ -32,17 +32,7 @@ const nameClass = computed(() =></div></div>- <template v-if="stacked && isShowParent && !hasChildren && props.category?.parentId">- <div class="text-2xs text-4 truncate leading-none">- {{ props.parentCategory?.name }}- </div>- </template>-- <template v-if="!stacked && isShowParent && !hasChildren && props.category?.parentId">- <div class="text-2xs text-4 shrink-0 leading-none">- •- </div>-+ <template v-if="isShowParent && !hasChildren && props.category?.parentId"><div class="text-2xs text-4 truncate leading-none">{{ props.parentCategory?.name }}</div>diff --git a/app/components/search/SearchCommandPalette.vue b/app/components/search/SearchCommandPalette.vueindex 486dc76e..bb2dc3b8 100644--- a/app/components/search/SearchCommandPalette.vue+++ b/app/components/search/SearchCommandPalette.vue@@ -147,6 +147,7 @@ function getTransfer(item: SearchResultItem): TransferFull | undefined {:category="getTransaction(rawItem as SearchResultItem)!.category":parentCategory="getTransaction(rawItem as SearchResultItem)!.categoryParent"isShowParent+ stacked/><div class="flex items-center gap-2"><div class="text-2xs text-4 leading-none">