From a35535de7c136f2c893a3edce5aa66e159bc8ff3 Mon Sep 17 00:00:00 2001 From: Bernard Siebens Date: Fri, 21 Aug 2026 20:41:42 +0200 Subject: [PATCH] Give the calendar row a single kind-marker bar and a dedicated location line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Games previously got a 4px left border while training/other events used a 3px bar next to the date — move games onto the same bar for one consistent marker position. Also break the location name out of the crowded meta line into its own row so it doesn't get truncated away. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01ECGMEwrc2k4D8VQuwjstj9 --- mobile/templates/mobile/_calendar_row.html | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/mobile/templates/mobile/_calendar_row.html b/mobile/templates/mobile/_calendar_row.html index fcc7af7..d53a8d9 100644 --- a/mobile/templates/mobile/_calendar_row.html +++ b/mobile/templates/mobile/_calendar_row.html @@ -1,27 +1,26 @@ {% load i18n %} {% comment %} One M3 agenda row -- included from calendar.html once per bucket. Expects - ``row`` ({event, pill_class, pill_label}) in scope. A 4px club-red left - border marks games; other kinds get a 3px colour bar (info for training, - warn for everything else) next to the date, per the design doc's M3 row - description. + ``row`` ({event, pill_class, pill_label}) in scope. A 3px colour bar next + to the date marks the event kind: club-red for games, info-blue for + training, warn-amber for everything else -- one consistent marker + position for every kind, rather than games getting a different + treatment (a left border on the whole row) from the rest. {% endcomment %} - +
{{ row.event.start|date:"D" }}
{{ row.event.start|date:"d" }}
- {% if row.event.kind != "game" %} -
- {% endif %} +
{{ row.event.title }}
{{ row.event.start|date:"H:i" }} {% if row.member %}· {{ row.member.first_name }}{% endif %} {% for team in row.event.teams.all %}· {{ team.name }}{% endfor %} - {% if row.event.location %}· {{ row.event.location.name }}{% endif %}
+ {% if row.event.location %}
{{ row.event.location.name }}
{% endif %}
{{ row.pill_label }}