mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
add margin top to subtitle
This commit is contained in:
@@ -358,7 +358,7 @@ defmodule ChesstrainerWeb.CoreComponents do
|
|||||||
<h1 class="text-lg font-semibold leading-8">
|
<h1 class="text-lg font-semibold leading-8">
|
||||||
{render_slot(@inner_block)}
|
{render_slot(@inner_block)}
|
||||||
</h1>
|
</h1>
|
||||||
<p :if={@subtitle != []} class="text-sm text-base-content/70">
|
<p :if={@subtitle != []} class="text-sm text-base-content/70 mt-4">
|
||||||
{render_slot(@subtitle)}
|
{render_slot(@subtitle)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -271,12 +271,6 @@ defmodule ChesstrainerWeb.LandingComponents do
|
|||||||
defp piece_glyph(nil), do: nil
|
defp piece_glyph(nil), do: nil
|
||||||
defp piece_glyph(piece), do: Map.get(@piece_glyphs, piece)
|
defp piece_glyph(piece), do: Map.get(@piece_glyphs, piece)
|
||||||
|
|
||||||
defp square_label(%{piece: piece} = square) when is_binary(piece) do
|
|
||||||
"#{square.key}, #{square.glyph}"
|
|
||||||
end
|
|
||||||
|
|
||||||
defp square_label(square), do: square.key
|
|
||||||
|
|
||||||
defp fen_for(%{fen: fen}) when is_binary(fen), do: fen
|
defp fen_for(%{fen: fen}) when is_binary(fen), do: fen
|
||||||
defp fen_for(_endgame), do: @fallback_fen
|
defp fen_for(_endgame), do: @fallback_fen
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user