Skip to content

Commit f2de5ce

Browse files
authored
Merge pull request #834 from liquality/fix-swap-fee-selected
fix: fixed default fee and swap provider types modal height
2 parents 6c2992d + 6837d17 commit f2de5ce

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/components/Modal.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ export default {
9696
border: 1px solid #d9dfe5;
9797
box-sizing: border-box;
9898
box-shadow: 2px 4px 4px rgba(46, 44, 44, 0.25);
99+
overflow: auto;
100+
max-height: 530px;
99101
100102
.modal-body {
101103
padding: 5px 20px 0 20px;

src/views/Swap/Swap.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,13 +648,13 @@ export default {
648648
}
649649
}
650650
}
651-
651+
652652
if (this.toAccountId && _toAsset) {
653653
this.toAssetChanged(this.toAccountId, _toAsset)
654654
this.toAsset = _toAsset
655655
this.updateFees({ asset: _toAsset })
656656
this.selectedFee = {
657-
[this.assetChain]: this.selectedFromFree,
657+
[this.assetChain]: this.selectedFromFee,
658658
[this.toAssetChain]: this.selectedToFee
659659
}
660660
}

src/views/Swap/SwapProvidersInfoModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<Modal @close="$emit('close')">
2+
<Modal @close="$emit('close')" :close-outside="true">
33
<template #header>
44
<h5 id="learn_about_swaps_types_header">Learn about swap providers</h5>
55
</template>
@@ -20,7 +20,7 @@
2020
</div>
2121
<div
2222
v-for="provider in providers"
23-
:key="provider"
23+
:key="provider.id"
2424
class="swap-providers-info_list border-bottom mb-4"
2525
>
2626
<SwapProviderLabel :network="activeNetwork" :provider="provider.id" class="mb-2" />

0 commit comments

Comments
 (0)