From 88df98f26978bc06d78fd00a13a55d02d398ce24 Mon Sep 17 00:00:00 2001 From: Samuel Enocsson Date: Thu, 21 May 2026 15:23:53 +0200 Subject: [PATCH] fix: place history chart in right grid column of expanded row (#7) The dl + button + chart were 3 direct children of .player-detail (a 2-column grid). Auto-placement put the button in the right column, forcing the chart to wrap to a second row in the left column. Wrap dl + button in .player-detail-left so the chart occupies col 2. --- views/partials/player-history.ejs | 56 ++++++++++++++++--------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/views/partials/player-history.ejs b/views/partials/player-history.ejs index 9f6b61f..3e082aa 100644 --- a/views/partials/player-history.ejs +++ b/views/partials/player-history.ejs @@ -4,33 +4,35 @@ const chartPdgaNumber = hasPlayer ? player.pdgaNumber : pdgaNumber; %>
<% if (hasPlayer) { %> -
-
-
Current rating
-
<%= player.rating ?? '—' %>
-
-
-
Last month
-
<%= player.lastMonthRating ?? '—' %>
-
-
-
Change vs last month
-
- <% if (player.ratingChange != null) { %><%- include('delta-pill', { value: player.ratingChange }) %><% } else { %>—<% } %> -
-
-
-
Predicted next update
-
<%= player.predictedRating ?? '—' %>
-
-
-
Gap to predicted
-
- <% if (player.deltaPredicted != null) { %><%- include('delta-pill', { value: player.deltaPredicted, extraClass: 'delta-predicted-pill' }) %><% } else { %>—<% } %> -
-
-
- +
+
+
+
Current rating
+
<%= player.rating ?? '—' %>
+
+
+
Last month
+
<%= player.lastMonthRating ?? '—' %>
+
+
+
Change vs last month
+
+ <% if (player.ratingChange != null) { %><%- include('delta-pill', { value: player.ratingChange }) %><% } else { %>—<% } %> +
+
+
+
Predicted next update
+
<%= player.predictedRating ?? '—' %>
+
+
+
Gap to predicted
+
+ <% if (player.deltaPredicted != null) { %><%- include('delta-pill', { value: player.deltaPredicted, extraClass: 'delta-predicted-pill' }) %><% } else { %>—<% } %> +
+
+
+ +
<% } %> <% if (history && history.length > 0) { %>