Fix for mobile monthly calendar view so clicking redirects to workout view

This commit is contained in:
Peter Stockings
2026-02-03 15:21:36 +11:00
parent ac093ec2e0
commit 437271bc8c

View File

@@ -149,8 +149,9 @@
{% if day.has_workouts %}
<!-- Mobile Summary -->
<div
class="sm:hidden flex flex-col flex-grow text-[8px] text-gray-500 font-medium leading-tight overflow-hidden pb-1 space-y-0.5">
<div class="sm:hidden flex flex-col flex-grow text-[8px] text-gray-500 font-medium leading-tight overflow-hidden pb-1 space-y-0.5"
hx-get="{{ url_for('workout.show_workout', person_id=person_id, workout_id=day.workouts[0].workout_id) }}"
hx-push-url="true" hx-target="#container">
{% for name in day.exercise_names %}
<div class="truncate pl-0.5 border-l border-blue-200">{{ name }}</div>
{% endfor %}