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

This commit is contained in:
2026-03-16 20:25:48 -06:00
parent ad3120bf6b
commit a2ac7ce591

View File

@@ -141,11 +141,11 @@ defmodule CobblemonUiWeb.DashboardLive do
def render(assigns) do def render(assigns) do
~H""" ~H"""
<Layouts.app flash={@flash}> <Layouts.app flash={@flash}>
<div class="min-h-screen -mx-4 -my-20 sm:-mx-6 lg:-mx-8"> <div class="h-screen flex flex-col -mx-4 -my-20 sm:-mx-6 lg:-mx-8">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> <div class="max-w-4xl w-full mx-auto px-4 sm:px-6 lg:px-8 flex flex-col flex-1 min-h-0">
<%!-- Player picker --%> <%!-- Player picker --%>
<div :if={is_nil(@selected_player)}> <div :if={is_nil(@selected_player)} class="flex-1 overflow-y-auto py-8">
<div class="flex items-center justify-between mb-8"> <div class="flex items-center justify-between mb-8">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-xl bg-primary/20 flex items-center justify-center"> <div class="w-10 h-10 rounded-xl bg-primary/20 flex items-center justify-center">
@@ -193,9 +193,9 @@ defmodule CobblemonUiWeb.DashboardLive do
</div> </div>
<%!-- Player view --%> <%!-- Player view --%>
<div :if={@selected_player}> <div :if={@selected_player} class="flex flex-col flex-1 min-h-0">
<%!-- Header --%> <%!-- Header --%>
<div class="flex items-center justify-between mb-8"> <div class="shrink-0 py-4 border-b border-base-300/20 flex items-center justify-between">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
<.link <.link
patch={~p"/"} patch={~p"/"}
@@ -220,6 +220,9 @@ defmodule CobblemonUiWeb.DashboardLive do
</button> </button>
</div> </div>
<%!-- Scrollable content --%>
<div class="flex-1 overflow-y-auto py-6">
<div <div
:if={@error} :if={@error}
class="rounded-xl border border-error/30 bg-error/10 px-5 py-4 mb-6" class="rounded-xl border border-error/30 bg-error/10 px-5 py-4 mb-6"
@@ -323,6 +326,8 @@ defmodule CobblemonUiWeb.DashboardLive do
tier={Map.get(@tier_list, String.downcase(@selected_pokemon.species || ""), nil)} tier={Map.get(@tier_list, String.downcase(@selected_pokemon.species || ""), nil)}
/> />
</div> </div>
</div>
</div> </div>
</div> </div>