Using alias actor ID when available. Using basic SVG flags instead of PNG. Moved PNG and HD SVG flags to assets.

This commit is contained in:
2020-05-13 20:27:06 +02:00
parent 6040a3f41f
commit dac451bb86
1198 changed files with 90809 additions and 16620 deletions

View File

@@ -90,7 +90,7 @@
>
<img
class="flag"
:src="`/img/flags/${actor.origin.country.alpha2.toLowerCase()}.png`"
:src="`/img/flags/svg-simple/${actor.origin.country.alpha2.toLowerCase()}.svg`"
>{{ actor.origin.country.alias || actor.origin.country.name }}
</span>
</span>
@@ -433,7 +433,8 @@ export default {
}
.flag {
margin: 0 .25rem 0 0;
height: 1rem;
margin: .25rem .25rem 0 0;
}
.bio-name {
@@ -454,7 +455,7 @@ export default {
}
.country {
display: block;
display: flex;
}
.height-imperial,

View File

@@ -29,7 +29,7 @@ export default {
};
},
beforeMount() {
this.svg = require(`../../img/${this.icon}.svg`).default;
this.svg = require(`../../img/icons/${this.icon}.svg`).default;
},
};
</script>