ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-Avatar is not working on mobile simulator

Open Knightofhonour opened this issue 6 years ago • 5 comments

Describe the bug The ui5-Avatar shows up perfectly as intended on a desktop web browser. However, it is not displayed when rendered on a mobile simulator web browser

To reproduce https://github.com/Knightofhonour/ui5-Avatar git clone the repo unzip the node modules zip file run command parcel src/index.html check local host on both a mobile simulator and on desktop browser

Isolated example Please provide an isolated example if possibile, by forking CodeSandbox

Expected behavior The ui5-Avatar should be rendered on the mobile browser

Screenshots image image

Context

  • UI5 Web Components version
  • OS/Platform: {...}
  • Browser (if relevant): {...}
  • Other information: {...}

Affected components (if known)

Log output / Any errors in the console

{...}

Knightofhonour avatar Oct 12 '20 01:10 Knightofhonour

Hello @Knightofhonour thanks for the issue and steps.

I followed the steps and I opened the index.html, but the "index.html" does not have an avatar.

However, I added one, referencing "map_icon.png" (image that I found):

<ui5-avatar image="./map_icon.png"></ui5-avatar>

but the avatar does not show on desktop as well, I guess this is something related to the server not serving the images with the expected paths

Screenshot 2020-10-12 at 10 06 46 AM

Best, ilhan

ilhan007 avatar Oct 12 '20 07:10 ilhan007

Hi @ilhan007 ,

For my side, even if an invalid image is used, a blue circle will appear where the avatar should be (for Desktop). In the mobile simulator, this blue circle does not appear at all, which leads me to think that its an issue of desktop vs mobile.

Is this meant to be an intended output?

Thank you, David Ong

Knightofhonour avatar Oct 12 '20 07:10 Knightofhonour

No, not intended, the avatar should be displayed both on desktop and phone. The thing is that when I run the referenced project, I can not see anything on desktop too. I will create a condesandbox sample to check if there is such issue.

ilhan007 avatar Oct 12 '20 07:10 ilhan007

Hello @Knightofhonour

Can you access this codesandbox emaxple: https://b8km3.csb.app/ The snippet shows an avatar and it is visible on both desktop and Chrome phone emulator.

The code is here. Version used: 1.0.0-rc.9

ilhan007 avatar Oct 12 '20 08:10 ilhan007

Hi @ilhan007 ,

Although it works in sandbox, I am unable to replicate it locally. Attached are some screenshots of my code and output. image image image image

Are you able to advise a solution for this?

Thank you, David Ong

Knightofhonour avatar Oct 12 '20 08:10 Knightofhonour