Skip to content

Open source personal finance application

chore: refactor

Ilya Komichev85e2610b27b4
diff --git a/app/components/layout/Sidebar.vue b/app/components/layout/Sidebar.vue
index 105064fb..b65df378 100644
--- a/app/components/layout/Sidebar.vue
+++ b/app/components/layout/Sidebar.vue
@@ -61,7 +61,7 @@ const isShowLogoMenu = ref(false)
<template #content>
<div class="grid gap-2 px-1 py-3 md:px-3">
- <UserViewLogout />
+ <UserViewLogout isShowSignOut />
<div class="flex items-center gap-2">
<LocaleSwitcher />
diff --git a/app/components/stat/Item.vue b/app/components/stat/Item.vue
index b2ba799f..727de560 100644
--- a/app/components/stat/Item.vue
+++ b/app/components/stat/Item.vue
@@ -306,7 +306,6 @@ function getIntervalsData(trnsIds: TrnId[], intervalsInRange: Range[]) {
:selectedTrnsIds="selectedAndFilteredTrnsIds"
:storageKey="newBaseStorageKey"
:type="props.type ?? 'netIncome'"
- class="@3xl/page:order-2"
@clickCategory="onClickCategory"
@onSetCategoryFilter="onSetCategoryFilter"
/>
diff --git a/app/components/stat/chart/Intervals.vue b/app/components/stat/chart/Intervals.vue
index c7908ad3..1894a308 100644
--- a/app/components/stat/chart/Intervals.vue
+++ b/app/components/stat/chart/Intervals.vue
@@ -43,6 +43,7 @@ const value = ref(props.period)
<template>
<USelect
+ v-if="items.length > 1"
v-model="value"
:items="items"
:ui="{
diff --git a/app/components/stat/chart/Wrap.vue b/app/components/stat/chart/Wrap.vue
index eac74413..7c32ec68 100644
--- a/app/components/stat/chart/Wrap.vue
+++ b/app/components/stat/chart/Wrap.vue
@@ -55,12 +55,14 @@ function onChangePeriod(period: Period) {
<div class="flex justify-end -mb-1">
<slot />
- <StatChartIntervals
- :class="{ 'border-l border-item-4': statConfig.config.value?.date.isShowQuick }"
- :period="statDate.params.value.intervalsBy"
- :range="statDate.range.value"
- @onChangePeriod="onChangePeriod"
- />
+ <div class="h-7">
+ <StatChartIntervals
+ :class="{ 'border-l border-item-4': statConfig.config.value?.date.isShowQuick }"
+ :period="statDate.params.value.intervalsBy"
+ :range="statDate.range.value"
+ @onChangePeriod="onChangePeriod"
+ />
+ </div>
</div>
<StatChartView
diff --git a/app/components/stat/date/Nav.vue b/app/components/stat/date/Nav.vue
index 7fec4314..288c20f7 100644
--- a/app/components/stat/date/Nav.vue
+++ b/app/components/stat/date/Nav.vue
@@ -28,7 +28,6 @@ const emit = defineEmits<{
<Icon name="lucide:chevron-left" size="24" class="rotate-180" />
</UiItem3>
- <!-- class="@xl/page:order-3" -->
<UiItem3
v-if="props.isShowNavHome"
@click="emit('changeDate', 'today')"
diff --git a/app/components/user/ViewLogout.vue b/app/components/user/ViewLogout.vue
index 030c5bd1..9cc5a29f 100644
--- a/app/components/user/ViewLogout.vue
+++ b/app/components/user/ViewLogout.vue
@@ -16,6 +16,7 @@ const { t } = useI18n()
class="flex items-center gap-3 pb-4 text-sm"
>
<img
+ v-if="userStore.currentUser?.photoURL"
:src="userStore.currentUser?.photoURL"
class="size-10 rounded-full"
>