Skip to content

Open source personal finance application

refactor(ui): remove cursor-pointer utility classes

Ilya Komicheva8dffae9c0ee
diff --git a/app/app/components/categories/Form.vue b/app/app/components/categories/Form.vue
index 3a89bb8a..ebdeab9b 100644
--- a/app/app/components/categories/Form.vue
+++ b/app/app/components/categories/Form.vue
@@ -452,7 +452,7 @@ async function onSave() {
<div
v-for="icon in iconGroup"
:key="icon"
- :class="cn('flex-center text-icon-primary size-10 cursor-pointer rounded-full border-2 border-transparent',
+ :class="cn('flex-center text-icon-primary size-10 rounded-full border-2 border-transparent',
icon === props.categoryForm.icon && 'border-primary',
)"
:style="{ background: props.categoryForm.color }"
diff --git a/app/app/components/categories/ItemBody.vue b/app/app/components/categories/ItemBody.vue
index c89395ed..693f8c62 100644
--- a/app/app/components/categories/ItemBody.vue
+++ b/app/app/components/categories/ItemBody.vue
@@ -99,7 +99,7 @@ function onRowClick(e: Event) {
>
<button
type="button"
- class="flex-center text-muted hover:bg-elevated/50 -my-1 -mr-1 h-9 w-9 shrink-0 cursor-pointer rounded-sm"
+ class="flex-center text-muted hover:bg-elevated/50 -my-1 -mr-1 h-9 w-9 shrink-0 rounded-sm"
:aria-label="t('base.moreOptions')"
@click.stop.prevent
>
@@ -139,7 +139,7 @@ function onRowClick(e: Event) {
<button
v-if="showRightChevron"
type="button"
- class="flex-center text-muted hover:bg-elevated/50 -mr-1 h-9 w-9 shrink-0 cursor-pointer rounded-sm"
+ class="flex-center text-muted hover:bg-elevated/50 -mr-1 h-9 w-9 shrink-0 rounded-sm"
:aria-label="t('base.toggleExpand')"
@click="onToggleClick"
>
diff --git a/app/app/components/layout/MenuBottom.vue b/app/app/components/layout/MenuBottom.vue
index 0fece8f5..60f0d36a 100644
--- a/app/app/components/layout/MenuBottom.vue
+++ b/app/app/components/layout/MenuBottom.vue
@@ -24,7 +24,7 @@ const isShowMenuLabels = useStorage('finapp.isShowMenuLabels', true)
v-for="(item, menuId) in itemsBottom"
:key="menuId"
:class="cn(
- 'interactive flex min-h-[44px] basis-0 grow cursor-pointer flex-col items-center justify-center gap-0.5 rounded-2xl py-1.5',
+ 'interactive flex min-h-[44px] basis-0 grow flex-col items-center justify-center gap-0.5 rounded-2xl py-1.5',
checkIsActive(String(menuId)) ? 'text-primary' : 'text-muted',
)"
@click="onClick(String(menuId))"
diff --git a/app/app/components/stat/categories/Line.vue b/app/app/components/stat/categories/Line.vue
index a5990dfb..b8426a9b 100644
--- a/app/app/components/stat/categories/Line.vue
+++ b/app/app/components/stat/categories/Line.vue
@@ -129,7 +129,7 @@ function onAmountClick(e: MouseEvent) {
<div
v-if="props.item.value !== 0"
:class="{ '!pb-2': isLines }"
- class="-my-1.5 flex min-w-12 shrink-0 cursor-pointer items-center justify-end self-stretch rounded-sm px-2"
+ class="-my-1.5 flex min-w-12 shrink-0 items-center justify-end self-stretch rounded-sm px-2"
@click="onAmountClick"
@pointerdown.stop
>
diff --git a/app/app/pages/settings.vue b/app/app/pages/settings.vue
index 3c95936a..7ecd7370 100644
--- a/app/app/pages/settings.vue
+++ b/app/app/pages/settings.vue
@@ -73,7 +73,7 @@ function onGenerateDemoData() {
<!-- Currency -->
<UiSettingsCard :title="t('currencies.base')">
<button
- class="text-highlighted bg-elevated/30 ring-accented hover:!bg-elevated/50 focus-visible:ring-primary group relative inline-flex min-h-[42px] min-w-[160px] cursor-pointer items-center gap-2 rounded-md px-4 py-2 pe-10 text-sm ring transition-colors ring-inset focus:outline-none focus-visible:ring-2 focus-visible:ring-inset"
+ class="text-highlighted bg-elevated/30 ring-accented hover:!bg-elevated/50 focus-visible:ring-primary group relative inline-flex min-h-[42px] min-w-[160px] items-center gap-2 rounded-md px-4 py-2 pe-10 text-sm ring transition-colors ring-inset focus:outline-none focus-visible:ring-2 focus-visible:ring-inset"
@click="isShowBaseCurrencyModal = true"
>
<span class="truncate">{{ currenciesStore.base }}</span>