From d9efb8b3dfd4dc62378332073f336e8ef400b231 Mon Sep 17 00:00:00 2001 From: versx Date: Thu, 17 Sep 2020 18:28:52 -0700 Subject: [PATCH 1/2] Fix pokemon popup content alignment on smaller devices --- static/js/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index c3accfdc..f8b02d71 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -2611,10 +2611,10 @@ function getPokemonPopupContent (pokemon) { content += '
' + // START 1ST ROW - '
' + + '
' + '
' + pokemonName + ' ' + getGenderIcon(pokemon.gender) + '
' + '
' + - '
' + + '
' + '
'; if (!(pokemon.display_pokemon_id > 0) && pokemon.weather !== 0 && pokemon.weather !== null) { content += ``; @@ -2625,7 +2625,7 @@ function getPokemonPopupContent (pokemon) { '
' + // END 1ST ROW '
' + // START 2ND ROW - '
' + + '
' + '
' + `` + '
' + // END POKEMON ROW @@ -2647,7 +2647,7 @@ function getPokemonPopupContent (pokemon) { content += '
' + // END TYPE ROW '
' + // END COLUMN - '
'; + '
'; if (hasIV) { const ivPercent = Math.round((pokemon.atk_iv + pokemon.def_iv + pokemon.sta_iv) / 45 * 1000) / 10; content += 'IV: ' + ivPercent + '% (A' + pokemon.atk_iv + '|D' + pokemon.def_iv + '|S' + pokemon.sta_iv + ')
'; From 695018edb17c379b330a18f57ddd10ce9ebfccee Mon Sep 17 00:00:00 2001 From: versx Date: Thu, 17 Sep 2020 18:30:57 -0700 Subject: [PATCH 2/2] Fix gym popup content alignment on smaller devices --- static/js/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index f8b02d71..a144a854 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -3027,10 +3027,10 @@ function getGymPopupContent (gym) { let content = '
' + // START 1ST ROW - '
' + + '
' + `${gymName}` + '
' + - '
' + + '
' + '
' + `` + '
' + @@ -3055,7 +3055,7 @@ function getGymPopupContent (gym) { const pokemonIcon = getPokemonIcon(gym.raid_pokemon_id, gym.raid_pokemon_form, gym.raid_pokemon_evolution, gym.raid_pokemon_gender, gym.raid_pokemon_costume); content += '
' + // START 1ST ROW - '
' + // START 1ST COL + '
' + // START 1ST COL '
'; if (hasRaidBoss && isRaidBattle) { content += ``; @@ -3084,7 +3084,7 @@ function getGymPopupContent (gym) { content += '
' + // END TYPE ROW '
' + // END 1ST COLUMN - '
' + // START 2ND COL + '
' + // START 2ND COL '' + pokemonName + '
'; if (hasRaidBoss && isRaidBattle) { if (gym.raid_pokemon_evolution) { @@ -3140,14 +3140,14 @@ function getGymPopupContent (gym) { : ''; let url = gym.url.replace('http://', 'https://'); content += - '
' + // START 1ST COL + '
' + // START 1ST COL // '' + `` + '
'; // END 1ST COL } content += // '
' + //START 2ND COL - '
' + // START 2ND COL + '
' + // START 2ND COL 'Team: ' + getTeamName(gym.team_id) + '
' + 'Slots Available: ' + (gym.availble_slots === 0 ? 'Full' : gym.availble_slots === 6 ? 'Empty' : gym.availble_slots) + '
'; if (gym.guarding_pokemon_id !== null) {