From 46bc27f6144cb3ddcddbbfafbd292cc6d42c2502 Mon Sep 17 00:00:00 2001 From: Owen Date: Fri, 6 Nov 2026 22:03:24 +0100 Subject: [PATCH] change header size and rating placement --- .../live/endgame_live/play.ex | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/lib/chesstrainer_web/live/endgame_live/play.ex b/lib/chesstrainer_web/live/endgame_live/play.ex index 7da4f49..8e563ef 100644 --- a/lib/chesstrainer_web/live/endgame_live/play.ex +++ b/lib/chesstrainer_web/live/endgame_live/play.ex @@ -10,13 +10,15 @@ defmodule ChesstrainerWeb.EndgameLive.Play do def render(assigns) do ~H""" - <.header> - Play endgame {@endgame.key} - <:subtitle> - {@endgame.color |> Atom.to_string() |> String.capitalize()} to move · Rating: {round( - @endgame.rating - )} · Attempts: {@endgame.times_attempted || - 0} · Solved: {@endgame.times_solved || 0} +
+
+

Play endgame {@endgame.key}

+

+ {@endgame.color |> Atom.to_string() |> String.capitalize()} to move · Rating: {round( + @endgame.rating + )} · Attempts: {@endgame.times_attempted || + 0} · Solved: {@endgame.times_solved || 0} +

FEN: {@endgame.fen}

- - <:actions> +
+
<.button :if={Scope.premium?(@current_scope)} navigate={~p"/endgames"}> <.icon name="hero-arrow-left" /> Back to endgames <.button :if={!Scope.premium?(@current_scope)} navigate={~p"/"}> <.icon name="hero-arrow-left" /> Back home - - - -
- <.rating_guide rating={@user_rating} deviation={@user_deviation} /> -
+
+
+ +
+ <.rating_guide rating={@user_rating} deviation={@user_deviation} /> +
""" end