Skip to content

Open source personal finance application

refactor: streamline component layouts and improve styling consistency

Ilya Komichevdf42f4daab2e
diff --git a/app/components/filter/FilterSelected.vue b/app/components/filter/FilterSelected.vue
index 77adb816..fc83beda 100644
--- a/app/components/filter/FilterSelected.vue
+++ b/app/components/filter/FilterSelected.vue
@@ -17,7 +17,7 @@ const itemClasses = getStyles('item', ['alt', 'rounded'])
</script>
<template>
- <div class="scrollbar flex gap-2 overflow-hidden overflow-x-auto">
+ <div class="flex gap-2 overflow-hidden overflow-x-auto">
<!-- Wallets -->
<template v-if="props.isShowWallets">
<WalletsItem
diff --git a/app/components/stat/Item.vue b/app/components/stat/Item.vue
index fe803f88..916d1210 100644
--- a/app/components/stat/Item.vue
+++ b/app/components/stat/Item.vue
@@ -269,7 +269,7 @@ function getIntervalsData(trnsIds: TrnId[], intervalsInRange: Range[]) {
<div class="bottomSheetContent">
<UiTitleModal>{{ t('trns.title') }} {{ selectedTrnsIds.length }}</UiTitleModal>
- <div class="scrollerBlock bottomSheetContentInside">
+ <div class="bottomSheetContentInside">
<TrnsList
:trnsIds="selectedTrnsIds"
class="py-2"
diff --git a/app/components/trnForm/Categories.vue b/app/components/trnForm/Categories.vue
index 1959b9c9..d06c7ff2 100644
--- a/app/components/trnForm/Categories.vue
+++ b/app/components/trnForm/Categories.vue
@@ -46,7 +46,7 @@ onMounted(() => {
<!-- Recent -->
<div class="swiper-slide h-full">
<div
- class="scrollbar scrollerBlock rounded-t-2xl bg-foreground-1 px-3 py-4 text-center font-primary text-xl font-semibold"
+ class="scrollerBlock rounded-t-2xl bg-foreground-1 px-3 py-4 text-center font-primary text-xl font-semibold"
>
{{ $t("categories.lastUsedTitle") }}
</div>
@@ -63,7 +63,7 @@ onMounted(() => {
<!-- Main -->
<div class="swiper-slide h-full">
<div
- class="scrollbar scrollerBlock rounded-t-2xl bg-foreground-1 px-3 py-4 text-center font-primary text-xl font-semibold"
+ class="scrollerBlock rounded-t-2xl bg-foreground-1 px-3 py-4 text-center font-primary text-xl font-semibold"
>
{{ $t("categories.title") }}
</div>
@@ -79,9 +79,7 @@ onMounted(() => {
<!-- Favorite -->
<div class="swiper-slide h-full">
- <div
- class="scrollbar scrollerBlock rounded-t-2xl bg-foreground-1 px-3 py-4 text-center font-primary text-xl font-semibold"
- >
+ <div class="scrollerBlock rounded-t-2xl bg-foreground-1 px-3 py-4 text-center font-primary text-xl font-semibold">
{{ $t("categories.favoriteTitle") }}
</div>
<div class="px-3 pb-1">
diff --git a/app/components/trnForm/Main.vue b/app/components/trnForm/Main.vue
index 462842ef..6abe821e 100644
--- a/app/components/trnForm/Main.vue
+++ b/app/components/trnForm/Main.vue
@@ -223,7 +223,7 @@ const actions = computed(() => ({
.trnForm__pagination {
@apply absolute left-1/2 z-[2] flex items-center justify-center w-auto p-1.5 rounded-md bg-foreground-1;
transform: translateX(-50%);
- bottom: calc(1px + env(safe-area-inset-bottom) - 16px);
+ bottom: calc(1px + env(safe-area-inset-bottom));
}
.swiper-pagination-bullet {
diff --git a/app/components/trnForm/TrnsSlide.vue b/app/components/trnForm/TrnsSlide.vue
index d431a50e..9a31772b 100644
--- a/app/components/trnForm/TrnsSlide.vue
+++ b/app/components/trnForm/TrnsSlide.vue
@@ -72,7 +72,7 @@ const tabs = computed<{ id: FilterBy, name: string }[]>(() => [
</script>
<template>
- <div class="grid h-full grid-rows-[1fr,auto] gap-2">
+ <div class="grid-rows-[1fr,auto] gap-2">
<TrnsList
:trnsIds="trnsIds"
isHideDates