Skip to content

Open source personal finance application

refactor: update class attribute order

Ilyadd9456e15801
diff --git a/app/components/trnForm/SelectionCategoriesFast.vue b/app/components/trnForm/SelectionCategoriesFast.vue
index bfc94e63..18a4aa35 100644
--- a/app/components/trnForm/SelectionCategoriesFast.vue
+++ b/app/components/trnForm/SelectionCategoriesFast.vue
@@ -17,10 +17,13 @@ const trnsFormStore = useTrnsFormStore()
<template>
<!-- Favorite categories -->
- <div v-if="categoriesStore.favoriteCategoriesIds.length > 0">
- <UiTitleModal>
+ <div
+ v-if="categoriesStore.favoriteCategoriesIds.length > 0"
+ class="pt-2"
+ >
+ <UiTitle7 class="mx-2">
{{ t('categories.favoriteCategories') }}
- </UiTitleModal>
+ </UiTitle7>
<CategoriesSelector2
:activeItemId="trnsFormStore.values.categoryId"
diff --git a/app/components/ui/Item1.vue b/app/components/ui/Item1.vue
index 9a57db76..52de6434 100644
--- a/app/components/ui/Item1.vue
+++ b/app/components/ui/Item1.vue
@@ -13,13 +13,13 @@ const emit = defineEmits<{
<template>
<div
- class="justify-center data-[state=open]:!bg-item-4" :class="[
+ class="data-[state=open]:!bg-item-4 justify-center" :class="[
getStyles('item', ['link', 'center', 'minh2', 'minw1', 'rounded']),
{
- 'text-xl text-muted': variant === 'icon',
+ 'text-muted text-xl': variant === 'icon',
},
{
- 'px-3 text-sm text-1': variant === 'text',
+ 'text-1 px-3 text-sm': variant === 'text',
},
{
'!bg-item-3': isActive,
diff --git a/app/components/ui/Title7.vue b/app/components/ui/Title7.vue
new file mode 100644
index 00000000..cf6cd57c
--- /dev/null
+++ b/app/components/ui/Title7.vue
@@ -0,0 +1,31 @@
+<script setup lang="ts">
+import { cn } from '~~/lib/cn'
+
+import { classes } from '~/components/ui/getStyles'
+
+const props = defineProps<{
+ isHideArrow?: boolean
+}>()
+const emit = defineEmits<{
+ (e: 'click'): void
+}>()
+</script>
+
+<template>
+ <div
+ :class="cn(
+ [classes.item.center, classes.item.minh2, classes.item.minw1, classes.item.rounded],
+ 'group flex grow items-center justify-between px-4 gap-2 pb-0 !font-tertiary !text-base font-semibold leading-none tracking-wide',
+ !props.isHideArrow && [classes.item.link],
+ )"
+ @click="emit('click')"
+ >
+ <div><slot /></div>
+ <Icon
+ v-if="!props.isHideArrow"
+ name="lucide:chevron-right"
+ size="22"
+ class="text-2 group-hover:text-1 -ml-1"
+ />
+ </div>
+</template>
diff --git a/app/components/wallets/Currencies.vue b/app/components/wallets/Currencies.vue
index d05d2daa..f20a18cb 100644
--- a/app/components/wallets/Currencies.vue
+++ b/app/components/wallets/Currencies.vue
@@ -17,7 +17,7 @@ const walletsStore = useWalletsStore()
</script>
<template>
- <UiTabs2 class="@xl/page:px-0 flex gap-1">
+ <UiTabs2 class="flex gap-1 @xl/page:px-0">
<UiTabsItem1
:isActive="currencyFiltered === 'all'"
@click="emit('onSelectFilterCurrency', 'all')"
diff --git a/app/pages/settings.vue b/app/pages/settings.vue
index 943158f0..d2173239 100644
--- a/app/pages/settings.vue
+++ b/app/pages/settings.vue
@@ -45,7 +45,7 @@ function onGenerateDemoData() {
</UiHeader>
<div class="pageWrapper">
- <div class="grid gap-8 @3xl/main:max-w-md pt-2">
+ <div class="grid gap-8 pt-2 @3xl/main:max-w-md">
<!-- User -->
<div class="pb-6">
<UserViewLogout isShowSignOut />
@@ -72,7 +72,7 @@ function onGenerateDemoData() {
<UiTitle3 class="pb-2">
{{ t('settings.caution') }}
</UiTitle3>
- <div class="pb-4 text-xs leading-none text-alert-1">
+ <div class="text-alert-1 pb-4 text-xs leading-none">
{{ t('alerts.willDeleteEverything') }}
</div>
@@ -105,7 +105,7 @@ function onGenerateDemoData() {
<!-- About -->
<div class="pb-12">
{{ t('app.about') }}
- <div class="pt-4 text-xs text-muted">
+ <div class="text-muted pt-4 text-xs">
{{ t('app.version') }} {{ version }}
<!-- <About /> -->
</div>