updates
All checks were successful
Build and Deploy / Build & Push Image (push) Successful in 31s

This commit is contained in:
2026-03-25 21:47:04 -06:00
parent a50fc40230
commit 33c0fb246a
2 changed files with 29 additions and 35 deletions

View File

@@ -404,11 +404,8 @@ defmodule CobblemonUiWeb.PokemonComponents do
~H"""
<div class="flex items-start gap-3 rounded-xl bg-base-200/40 border border-base-300/20 px-3.5 py-3 hover:bg-base-200/60 transition-colors">
<%!-- Type icon --%>
<div class={[
"w-11 h-11 flex items-center justify-center shrink-0 mt-0.5",
TypeChart.type_text_color(@type_name)
]}>
<TypeIcons.type_icon type={@type_name} class="w-8 h-8" />
<div class="w-11 h-11 flex items-center justify-center shrink-0 mt-0.5">
<TypeIcons.type_icon type={@type_name} class={["w-8 h-8", TypeChart.type_fill_color(@type_name)]} />
</div>
<%!-- Weakness / Resistance rows --%>
<div class="flex-1 min-w-0">
@@ -456,13 +453,10 @@ defmodule CobblemonUiWeb.PokemonComponents do
def type_mini_icon(assigns) do
~H"""
<span
class={[
"inline-flex items-center justify-center w-5 h-5",
TypeChart.type_text_color(@type_name)
]}
class="inline-flex items-center justify-center w-5 h-5"
title={@type_name}
>
<TypeIcons.type_icon type={@type_name} class="w-4 h-4" />
<TypeIcons.type_icon type={@type_name} class={["w-4 h-4", TypeChart.type_fill_color(@type_name)]} />
</span>
"""
end