Skip to content

Open source personal finance application

refactor: unify bottom sheet drag classes with bottomSheetDragClassesCustom utility

Ilya Komichev54c2760f4896
diff --git a/app/components/trnForm/Bottom.vue b/app/components/trnForm/Bottom.vue
index 7f8e06aa..2667f50d 100644
--- a/app/components/trnForm/Bottom.vue
+++ b/app/components/trnForm/Bottom.vue
@@ -74,7 +74,7 @@ onMounted(init)
<template>
<BottomSheet
:isShow="isShow"
- dragClassesCustom="max-h-[98dvh] max-w-md"
+ dragClassesCustom="bottomSheetDragClassesCustom max-h-[98dvh]"
@closed="trnsFormStore.onClose()"
>
<template #handler="{ close }">
diff --git a/app/components/trnForm/SelectorCategory.vue b/app/components/trnForm/SelectorCategory.vue
index 93eee22a..3451527c 100644
--- a/app/components/trnForm/SelectorCategory.vue
+++ b/app/components/trnForm/SelectorCategory.vue
@@ -20,7 +20,7 @@ const isShow = ref(false)
:title="t('trnForm.category.select')"
:isOpen="isShow"
:bottomSheetStyle="props.bottomSheetStyle"
- dragClassesCustom="h-full max-w-md"
+ dragClassesCustom="bottomSheetDragClassesCustom h-full"
isShowCloseBtn
@openModal="isShow = true"
@closeModal="isShow = false"
diff --git a/app/components/trnForm/SelectorWallet.vue b/app/components/trnForm/SelectorWallet.vue
index aafd2d6f..2d32e294 100644
--- a/app/components/trnForm/SelectorWallet.vue
+++ b/app/components/trnForm/SelectorWallet.vue
@@ -23,7 +23,7 @@ const isShow = ref(false)
:bottomSheetStyle="props.bottomSheetStyle"
:isOpen="isShow"
:title="props.title"
- dragClassesCustom="h-full max-w-md"
+ dragClassesCustom="bottomSheetDragClassesCustom h-full"
isShowCloseBtn
@closeModal="isShow = false"
@openModal="isShow = true"
diff --git a/app/components/trnForm/main/Description.vue b/app/components/trnForm/main/Description.vue
index 042efca1..b6dd6126 100644
--- a/app/components/trnForm/main/Description.vue
+++ b/app/components/trnForm/main/Description.vue
@@ -24,7 +24,7 @@ function onSave(close: () => void) {
:isOpen="trnsFormStore.modal.description"
:title="t('trnForm.description.title')"
class="shrink-0 !grow-0"
- dragClassesCustom="max-w-md"
+ dragClassesCustom="bottomSheetDragClassesCustom"
isShowCloseBtn
@closeModal="trnsFormStore.closeTrnFormModal('description')"
@openModal="trnsFormStore.openTrnFormModal('description')"