Skip to content

Commit

Permalink
fix(component): fix missing margin between flag and country
Browse files Browse the repository at this point in the history
fix missing margin between flag and country

fix #18
  • Loading branch information
yogakurniawan committed Jul 22, 2020
1 parent 2314244 commit dc1ec7b
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 25 deletions.
14 changes: 7 additions & 7 deletions dist/vue-tel-input-vuetify.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-tel-input-vuetify.min.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/vue-tel-input-vuetify.umd.js

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions lib/vue-tel-input-vuetify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<div :class="activeCountry.iso2.toLowerCase()" class="vti__flag" />
</template>
<template v-slot:item="data">
<div :class="data.item.iso2.toLowerCase()" class="vti__flag" />
{{ data.item.name }} {{ `+${data.item.dialCode}` }}
<span :class="data.item.iso2.toLowerCase()" class="vti__flag" />
<span>{{ data.item.name }} {{ `+${data.item.dialCode}` }}</span>
</template>
</v-select>
</div>
Expand Down Expand Up @@ -724,6 +724,10 @@ export default {

<style src="./sprite.css"></style>
<style lang="scss">
.vti__flag {
margin-right: 8px;
}
.vue-tel-input-vuetify {
display: flex;
align-items: center;
Expand All @@ -736,9 +740,10 @@ export default {
border-bottom: 1px solid #cacaca;
}
.vti__flag {
margin-right: 5px;
margin-left: 5px;
.v-select__selections {
.vti__flag {
margin-left: 18px;
}
}
}
</style>
15 changes: 10 additions & 5 deletions src/lib/vue-tel-input-vuetify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<div :class="activeCountry.iso2.toLowerCase()" class="vti__flag" />
</template>
<template v-slot:item="data">
<div :class="data.item.iso2.toLowerCase()" class="vti__flag" />
{{ data.item.name }} {{ `+${data.item.dialCode}` }}
<span :class="data.item.iso2.toLowerCase()" class="vti__flag" />
<span>{{ data.item.name }} {{ `+${data.item.dialCode}` }}</span>
</template>
</v-select>
</div>
Expand Down Expand Up @@ -724,6 +724,10 @@ export default {

<style src="./sprite.css"></style>
<style lang="scss">
.vti__flag {
margin-right: 8px;
}
.vue-tel-input-vuetify {
display: flex;
align-items: center;
Expand All @@ -736,9 +740,10 @@ export default {
border-bottom: 1px solid #cacaca;
}
.vti__flag {
margin-right: 5px;
margin-left: 5px;
.v-select__selections {
.vti__flag {
margin-left: 18px;
}
}
}
</style>

0 comments on commit dc1ec7b

Please sign in to comment.