diff --git a/src/components/sprites/Character.vue b/src/components/sprites/Character.vue index ba6219a..d2685fb 100644 --- a/src/components/sprites/Character.vue +++ b/src/components/sprites/Character.vue @@ -139,8 +139,8 @@ const createChatText = (text: Phaser.GameObjects.Text) => { text.setFontSize(13) text.setFontFamily('Arial') - // Fix text alignment on Windows - if (game.device.os.windows) { + // Fix text alignment on Windows and Android + if (game.device.os.windows || game.device.os.android) { text.setOrigin(0.5, 9.75) } } @@ -149,8 +149,8 @@ const createText = (text: Phaser.GameObjects.Text) => { text.setFontSize(13) text.setFontFamily('Arial') - // Fix text alignment on Windows - if (game.device.os.windows) { + // Fix text alignment on Windows and Android + if (game.device.os.windows || game.device.os.android) { text.setOrigin(0.5, 8) } }