Skip to content

Open source personal finance application

fix(CurrenciesModal): scroll

ilkome66edd7674f3e
diff --git a/components/base/BottomSheet.vue b/components/base/BottomSheet.vue
index a900cf5e..c0d1d2c0 100644
--- a/components/base/BottomSheet.vue
+++ b/components/base/BottomSheet.vue
@@ -8,6 +8,7 @@ export default defineComponent({
maxHeight: { type: Number, default: null },
height: { type: Number, default: null },
insideClass: { type: String, default: null },
+ isScrollerBlock: { type: Boolean, default: true },
},
setup(props, { emit }) {
@@ -370,7 +371,7 @@ export default defineComponent({
slot(name="header" :close="close")
.drug__inside(
- :class="[insideClass, { _scroll: !!maxHeightScroll, scrollerBlock: !!maxHeightScroll }]"
+ :class="[insideClass, { _scroll: !!maxHeightScroll, scrollerBlock: (!!maxHeightScroll && isScrollerBlock) }]"
:style="{ maxHeight: maxHeight && maxHeightScroll, height: height && heightScroll }"
)
.handler(ref="handler")
diff --git a/components/currencies/List.vue b/components/currencies/List.vue
index c2a53bc5..bf8086c1 100644
--- a/components/currencies/List.vue
+++ b/components/currencies/List.vue
@@ -32,7 +32,7 @@ const list = computed(() => {
type="text"
)
- .overflow-y-auto.mt-3.pb-3.px-3.flex.flex-col.gap-1
+ .overflow-y-auto.mt-3.pb-3.px-3.flex.flex-col.gap-1.scrollerBlock
template(v-if="list.length === 0")
.py-3.text-center {{ $t('notFound') }}
diff --git a/components/currencies/Modal.vue b/components/currencies/Modal.vue
index a87ebfae..9cf340a0 100644
--- a/components/currencies/Modal.vue
+++ b/components/currencies/Modal.vue
@@ -18,6 +18,7 @@ Portal(
BaseBottomSheet(
:maxHeight="height"
:height="height"
+ :isScrollerBlock="false"
insideClass="bg-skin-layout-main"
@closed="$store.commit('currencies/hideBaseCurrenciesModal')"
)