Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flags don't display in the android browser with the 2.3.2 version and vue3 #126

Open
nekooee opened this issue Aug 3, 2022 · 4 comments

Comments

@nekooee
Copy link

nekooee commented Aug 3, 2022

Hi,
I used the latest version (2.3.2) of vue-country-flag, unfortunately, does not display any flags in the android browser but no problem on the desktop.
you can see the problem top of this page:
https://flashdump.ir/en

please help me

@nekooee nekooee changed the title flags do not display in the android browser with the 2.3.2 version and vue3 flags don't display in the android browser with the 2.3.2 version and vue3 Aug 3, 2022
@nekooee
Copy link
Author

nekooee commented Aug 3, 2022

Now I found, that when I add background color, the problem solve! for example, I added background-color: white and I saw the flag was displayed. but why?

@ubaldop
Copy link
Owner

ubaldop commented Aug 4, 2022

Hello @nekooee, thanks for reporting this. Alas, this issue was already mentioned and I was not able to fix it properly because it seems that base64 encoded flag sprite does not works properly on Android. See here for further details.

Unluckly currently I have not enough spare time to investigate on it again 😿

@ubaldop
Copy link
Owner

ubaldop commented Aug 4, 2022

Now I found, that when I add background color, the problem solve! for example, I added background-color: white and I saw the flag was displayed. but why?

About this, wow, nice catch! I don't know why either, but it seems a good workaround. Does it work also with a transparent background? I am happy you're able to manage it with a working trick, thanks for mentioning it.

@nekooee
Copy link
Author

nekooee commented Aug 6, 2022

Now I found, that when I add background color, the problem solve! for example, I added background-color: white and I saw the flag was displayed. but why?

About this, wow, nice catch! I don't know why either, but it seems a good workaround. Does it work also with a transparent background? I am happy you're able to manage it with a working trick, thanks for mentioning it.

you're welcome. If you make it transparent, the flag will not be displayed. But there is no need to do this. Because the background color is under the flag and cannot be seen at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants