Skip to content

Open source personal finance application

chore (ui): update

ilkome632899667ffc
diff --git a/components/stat/Mobile.vue b/components/stat/Mobile.vue
index 2d278d2b..aa0d774e 100644
--- a/components/stat/Mobile.vue
+++ b/components/stat/Mobile.vue
@@ -201,8 +201,6 @@ export default {
:title="$t('dates.day.today')"
)
- .boxEmpty(v-if="statCurrentPeriod[item.id].categoriesIds.length === 0") {{ $t('stat.empty') }}
-
.statChartLines(v-if="filter.categoryId")
StatChartLines(
v-if="filter.categoryId && $store.getters['trns/hasTrns']"
@@ -212,6 +210,8 @@ export default {
:isShowIncomes="item.type === 1"
)
+ .boxEmpty(v-if="statCurrentPeriod[item.id].categoriesIds.length === 0") {{ $t('stat.empty') }}
+
//- Pie chart
.statChartPie(v-if="ui.showPieChart")
LazyStatChartPie(
@@ -221,12 +221,12 @@ export default {
//- Cats vertical chart
StatCatsPeriodCatsChart(
- v-if="ui.showCatsVerticalChart && !filter.categoryId && $store.state.ui.catsChart === 'visible' && statCurrentPeriod[item.id].categoriesIds.length > 1"
+ v-if="ui.showCatsVerticalChart && !filter.categoryId && $store.state.ui.catsChart === 'visible' && statCurrentPeriod[item.id].categoriesIds.length > 1 && (!filter.categoryId || filter.categoryId && $store.getters['categories/getChildCategoriesIds'](filter.categoryId).length !== 0)"
:type="item.id"
)
//- Round cats list
- .statItemsTiles(v-if="ui.showRoundCats && statWithLastPeriods[item.id].categoriesIds.length > 0")
+ .statItemsTiles(v-if="ui.showRoundCats && statWithLastPeriods[item.id].categoriesIds.length > 0 && (!filter.categoryId || filter.categoryId && $store.getters['categories/getChildCategoriesIds'](filter.categoryId).length !== 0)")
LazyStatItemRound(
v-if="ui.showRoundCats && statWithLastPeriods[item.id].categoriesIds.length > 0"
v-for="categoryId in statWithLastPeriods[item.id].categoriesIds"
@@ -251,7 +251,7 @@ export default {
)
//- Cats horizontal list
- .statCategories(v-if="ui.showCatsHorizontalList && statCurrentPeriod[item.id].categoriesIds.length > 0")
+ .statCategories(v-if="ui.showCatsHorizontalList && statCurrentPeriod[item.id].categoriesIds.length > 0 ")
LazyStatItem(
v-if="ui.showCatsHorizontalList && statCurrentPeriod[item.id].categoriesIds.length > 0"
v-for="categoryId in statCurrentPeriod[item.id].categoriesIds"
@@ -447,11 +447,11 @@ export default {
// ------------------------------------
.boxEmpty
- padding 0 $m7
- padding-top $m6
+ padding 0
+ padding-top $m7
padding-bottom $m10
color var(--c-font-5)
- font-size 10px
+ font-size 14px
// ------------------------------------
.boxSummary2
diff --git a/components/wallets/item/walletItem.styl b/components/wallets/item/walletItem.styl
index 51f0c8c4..3bea9465 100644
--- a/components/wallets/item/walletItem.styl
+++ b/components/wallets/item/walletItem.styl
@@ -15,10 +15,7 @@
display grid
grid-template-columns minmax(10px, max-content) 1fr minmax(10px, max-content)
grid-template-rows repeat(2, 1fr)
- grid-column-gap $m9
-
- @media $media-laptop
- grid-column-gap $m8
+ grid-column-gap $m8
&__amount
grid-column 3 / 4
@@ -60,7 +57,7 @@
grid-row 1 / 3
align-self center
color var(--c-font-4)
- fs-m()
+ font-size 14px
.walletItemTile
overflow hidden