Open source personal finance application
fix: align single-type sum block to start without padding
Ilya Komichevacbe5be82790
diff --git a/app/components/stat/sum/Item.vue b/app/components/stat/sum/Item.vueindex 79e8a064..0038c77f 100644--- a/app/components/stat/sum/Item.vue+++ b/app/components/stat/sum/Item.vue@@ -24,7 +24,7 @@ const currenciesStore = useCurrenciesStore()<div:class="cn(props.plain- ? 'px-3 pb-1 text-center'+ ? 'px-1 pb-1': 'flex-1 flex-wrap rounded-sm border border-transparent bg-(--item-3) px-3 py-2 @2xl/stat:max-w-max',props.isActive && 'bg-item-2 border-(--ui-primary)/40',)"diff --git a/app/components/stat/sum/Wrap.vue b/app/components/stat/sum/Wrap.vueindex 9842e7ca..e552586a 100644--- a/app/components/stat/sum/Wrap.vue+++ b/app/components/stat/sum/Wrap.vue@@ -92,7 +92,7 @@ function onClick(type: SeriesSlugSelected) {</StatSumItem></div>- <div v-else class="flex items-center justify-center sm:justify-start">+ <div v-else class="flex items-center justify-start"><StatSumItem:amount="props.type === 'income' ? total.income : -((total as Record<string, number>)[props.type]!)":class="className"