diff --git a/lib/cobblemon_ui_web/live/pokemon_components.ex b/lib/cobblemon_ui_web/live/pokemon_components.ex index 93bb46b..13a91ac 100644 --- a/lib/cobblemon_ui_web/live/pokemon_components.ex +++ b/lib/cobblemon_ui_web/live/pokemon_components.ex @@ -31,62 +31,77 @@ defmodule CobblemonUiWeb.PokemonComponents do if(@compact, do: "p-2.5", else: "p-3.5") ]} > -
-
-

- {@pokemon.species || "Unknown"} -

-

- Lv. {@pokemon.level || "?"} -

+
+ <%!-- Sprite (party only) --%> +
+ {@pokemon.species}
-
- <.tier_badge :if={@tier} tier={@tier} species={@pokemon.species} compact={@compact} /> -
- ? +
+
+
+

+ {@pokemon.species || "Unknown"} +

+

+ Lv. {@pokemon.level || "?"} +

+
+
+ <.tier_badge :if={@tier} tier={@tier} species={@pokemon.species} compact={@compact} /> +
+ ? +
+
+ <.icon + name="hero-sparkles" + class={[ + "text-warning", + if(@compact, do: "size-3", else: "size-4") + ]} + /> +
+
-
- <.icon - name="hero-sparkles" +
+ + {@pokemon.nature} + + + > + {gender_symbol(@pokemon.gender)} +
-
- - {@pokemon.nature} - - - {gender_symbol(@pokemon.gender)} - -
""" end @@ -388,12 +403,12 @@ defmodule CobblemonUiWeb.PokemonComponents do def type_chart_card(assigns) do ~H"""
- <%!-- Type icon circle --%> + <%!-- Type icon --%>
- +
<%!-- Weakness / Resistance rows --%>
@@ -442,12 +457,12 @@ defmodule CobblemonUiWeb.PokemonComponents do ~H""" - + """ end