Open source personal finance application
refactor(stat): enhance layout spacing
Ilya Komichev3c0bcf1de5f2
diff --git a/app/components/stat/Item.vue b/app/components/stat/Item.vueindex 51918c1a..b492e7b2 100644--- a/app/components/stat/Item.vue+++ b/app/components/stat/Item.vue@@ -221,7 +221,7 @@ function getIntervalsData(trnsIds: TrnId[], intervalsInRange: Range[]) {:xAxisLabels="chart.xAxisLabels.value"/>- <div class="grid gap-1 pb-2 md:max-w-lg">+ <div class="grid gap-1 pb-5 md:max-w-lg"><StatDateNavigation :maxRange="statDate.maxRange.value" /><StatDateQuickv-if="statConfig.config.value.date.isShowQuick"@@ -239,7 +239,7 @@ function getIntervalsData(trnsIds: TrnId[], intervalsInRange: Range[]) {@click="onClickSumItem"/>- <div class="grid w-full gap-2 pt-3">+ <div class="grid w-full gap-2"><StatCategoriesSectionv-if="props.hasChildren || (props.preCategoriesIds ?? []).length > 0":isOneCategory="props.isOneCategory"diff --git a/app/components/stat/sum/Wrap.vue b/app/components/stat/sum/Wrap.vueindex 1adf647d..be6cded0 100644--- a/app/components/stat/sum/Wrap.vue+++ b/app/components/stat/sum/Wrap.vue@@ -35,17 +35,17 @@ function onClick(type: MoneyTypeSlugNew) {</script><template>- <div class="rounded-md md:max-w-lg">+ <div class="rounded-md md:max-w-lg pb-4"><divv-if="props.type === 'netIncome'"- class="flex flex-wrap justify-stretch"+ class="flex flex-wrap _justify-stretch"><StatSumItemv-if="props.isShowExpense":amount="-total.expense":isActive="selectedType === 'expense'":class="classes"- class="grow"+ class="_grow"type="expense"@click="onClick('expense')"/>@@ -55,7 +55,7 @@ function onClick(type: MoneyTypeSlugNew) {:amount="total.income":isActive="selectedType === 'income'":class="classes"- class="grow"+ class="_grow"type="income"@click="onClick('income')"/>@@ -64,7 +64,7 @@ function onClick(type: MoneyTypeSlugNew) {v-if="props.isShowIncome && props.isShowExpense":amount="total.sum":class="classes"- class="grow"+ class="_grow"type="summary"@click="onClick('summary')"/>