Skip to content

Open source personal finance application

feat (ui): update

ilkomebe6fca2350f3
diff --git a/components/chart/Periods.vue b/components/chart/Periods.vue
index 2f6031d1..74a86ad3 100644
--- a/components/chart/Periods.vue
+++ b/components/chart/Periods.vue
@@ -101,10 +101,6 @@ export default {
)
.periods__group
- .periodItem(
- @click="removePeriodOrGroup"
- ): .mdi.mdi-minus
-
.periodItem(
v-for="periodItem in periodsNames"
:key="periodItem.slug"
@@ -112,9 +108,12 @@ export default {
@click="$store.dispatch('filter/setPeriod', periodItem.slug)"
)
.periodItem__name {{ periodItem.name }}
- .periodItem__count(
- v-if="filterPeriodNameAllReplacedToYear === periodItem.slug"
- ) {{ $store.state.chart.periods[periodItem.slug].showedPeriods }}
+
+ .periods__group(v-if="!isEmptyStat")
+ .periodItem(
+ @click="removePeriodOrGroup"
+ ): .mdi.mdi-minus
+ .periodItem__count {{ $store.state.chart.periods[filterPeriodNameAllReplacedToYear].showedPeriods }}
.periodItem(
@click="addPeriodOrGroup"
): .mdi.mdi-plus
@@ -135,14 +134,18 @@ export default {
z-index 10
position relative
display grid
- grid-template-columns auto 1fr auto
+ grid-template-columns auto 1fr auto auto
grid-column-gap $m5
align-items center
+ margin 0 (- 0)
+media(600px)
- padding-top 8px
+ margin 0 (- $m4)
grid-column-gap $m9
+ +media(800px)
+ margin 0 (- $m6)
+
&__group
display flex
align-items center
@@ -183,7 +186,8 @@ export default {
color var(--c-blue-1)
&__count
- padding-left $m4
+ color var(--c-font-3)
+ font-size 14px
.mdi
+media(600px)
diff --git a/components/date/MobileSelector.vue b/components/date/MobileSelector.vue
index dac67157..d6f310e7 100644
--- a/components/date/MobileSelector.vue
+++ b/components/date/MobileSelector.vue
@@ -60,11 +60,11 @@ export default {
display flex
align-items center
justify-content center
+ padding-top $m5
+media(800px)
align-items flex-start
justify-content flex-start
- padding 0
.menuDots
cursor pointer
diff --git a/components/stat/Dashboard.vue b/components/stat/Dashboard.vue
index 1e9a3e0d..dd3a85e9 100644
--- a/components/stat/Dashboard.vue
+++ b/components/stat/Dashboard.vue
@@ -150,9 +150,6 @@ export default {
<template lang="pug">
.pageWrapScroll
- .baseBox._date
- ChartPeriods
-
.baseBox._date
DateMobilePrevNextArrow
@@ -211,6 +208,9 @@ export default {
.baseBox._chart(v-if="ui.showMainChart && isShowChart")
LazyChartTotal(v-if="ui.showMainChart && isShowChart")
+ .baseBox._date
+ ChartPeriods
+
.noStat(v-if="isEmptyStat")
.noStat__title {{ $t('stat.empty') }}
.noStat__desc {{ $t('stat.emptyDesc') }}
@@ -487,9 +487,12 @@ export default {
&._total
margin-top 0
+ margin-bottom 0
padding-top $m4
padding-right 0
+ padding-bottom 0
background none
+ border none
+media(800px)
padding-bottom 0
diff --git a/package.json b/package.json
index eb826053..41400189 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "finapp",
- "version": "3.13.0",
+ "version": "3.14.0",
"scripts": {
"dev": "cross-env NUXT_HOST=0.0.0.0 nuxt",
"build": "nuxt build",