Skip to content

Commit

Permalink
feat: set country selector top left in buy modal
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax authored and jeffesquivels committed Jan 21, 2025
1 parent b04784b commit 67a273a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/modals/BuyOptionsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
<CountrySelector @select="c => country = c">
<div slot="trigger" class="pill flex-row">
<CountryFlag v-if="country" :code="country.code" />
<CircleSpinner v-else/>
<span v-if="country">{{ country.name }}</span>
<span v-else>{{ $t('Loading...') }}</span>
<img src="../../assets/mini-arrow-down.svg" alt="open"/>
<CircleSpinner v-else />
<img src="../../assets/mini-arrow-down.svg" alt="open" />
</div>
</CountrySelector>
</header>
Expand Down Expand Up @@ -316,6 +314,9 @@ header {
}
.country-selector {
position: absolute;
top: 2rem;
left: 2rem;
z-index: 100;
display: inline-block;
margin-bottom: 3rem;
Expand All @@ -329,6 +330,11 @@ header {
}
}
}
::v-deep .dropdown {
left: 0;
transform: translateX(0);
}
}
.country-flag,
Expand Down

0 comments on commit 67a273a

Please sign in to comment.