This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user