Skip to content

Commit 443cb6c

Browse files
committed
fix: fix flag size for the list view
1 parent 5a13112 commit 443cb6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adminforth/spa/src/afcl/CountryFlag.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="aspect-[4/3] w-8 h-6 flex items-center justify-center">
3-
<component v-if="getFlagComponent(countryCode)" :is="getFlagComponent(countryCode)" class="flag-icon w-full h-full object-contain rounded-sm"/>
3+
<component v-if="getFlagComponent(countryCode)" :is="getFlagComponent(countryCode)" class="flag-icon h-full object-contain rounded-sm"/>
44
<span v-else-if="countryCode">{{ countryCode }}</span>
55
</div>
66
</template>
@@ -24,5 +24,6 @@ const getFlagComponent = (countryCode: string) => {
2424
box-shadow: inset -0.3px -0.3px 0.3px 0px rgba(0 0 0 / 0.2),
2525
inset 0.3px 0.3px 0.3px 0px rgba(255 255 255 / 0.2),
2626
0px 0px 3px #00000030;
27+
width: auto;
2728
}
2829
</style>

0 commit comments

Comments
 (0)