Remove dark TW classes from exercise history table

This commit is contained in:
Peter Stockings
2026-02-27 10:29:54 +11:00
parent c4feaa97dd
commit 1c51bb6ced

View File

@@ -1,6 +1,6 @@
{% if offset == 0 %} {% if offset == 0 %}
<div id="exercise-history-container" <div id="exercise-history-container"
class="w-full bg-gray-50 dark:bg-gray-800 p-4 border-t border-gray-200 dark:border-gray-700 shadow-inner overflow-x-auto"> class="w-full bg-gray-50 p-4 border-t border-gray-200 shadow-inner overflow-x-auto">
<div class="flex items-center justify-between sm:justify-center relative mb-1"> <div class="flex items-center justify-between sm:justify-center relative mb-1">
<div class="flex items-center justify-center gap-2 w-full"> <div class="flex items-center justify-center gap-2 w-full">
<h4 class="text-l font-semibold text-blue-400">{{ title }}</h4> <h4 class="text-l font-semibold text-blue-400">{{ title }}</h4>
@@ -10,7 +10,7 @@
</div> </div>
<div class="absolute right-0 z-10"> <div class="absolute right-0 z-10">
<button <button
class="inline-flex justify-center p-1 text-gray-500 rounded cursor-pointer hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-600" class="inline-flex justify-center p-1 text-gray-500 rounded cursor-pointer hover:text-gray-900 hover:bg-gray-100"
title="Show Progress Graph" title="Show Progress Graph"
hx-get="{{ url_for('get_exercise_progress_for_user', person_id=person_id, exercise_id=exercise_id) }}" hx-get="{{ url_for('get_exercise_progress_for_user', person_id=person_id, exercise_id=exercise_id) }}"
hx-target="#exercise-history-container" hx-swap="outerHTML"> hx-target="#exercise-history-container" hx-swap="outerHTML">
@@ -30,8 +30,8 @@
{% else %} {% else %}
<div class="mb-4"></div> <div class="mb-4"></div>
{% endif %} {% endif %}
<table class="w-full text-left text-sm text-gray-500 dark:text-gray-400"> <table class="w-full text-left text-sm text-gray-500">
<thead class="text-xs text-gray-700 uppercase bg-gray-100 dark:bg-gray-700 dark:text-gray-400"> <thead class="text-xs text-gray-700 uppercase bg-gray-100">
<tr> <tr>
<th scope="col" class="px-3 py-2">Date</th> <th scope="col" class="px-3 py-2">Date</th>
<th scope="col" class="px-3 py-2">Set & Achievements</th> <th scope="col" class="px-3 py-2">Set & Achievements</th>
@@ -41,11 +41,11 @@
{% endif %} {% endif %}
{% for topset in topsets %} {% for topset in topsets %}
<tr class="border-b dark:border-gray-700 bg-white dark:bg-gray-800"> <tr class="border-b bg-white">
<td class="px-3 py-2 text-sm text-gray-900 dark:text-white whitespace-nowrap"> <td class="px-3 py-2 text-sm text-gray-900 whitespace-nowrap">
{{ topset.start_date | strftime }} {{ topset.start_date | strftime }}
</td> </td>
<td class="px-3 py-2 text-sm text-gray-900 dark:text-white"> <td class="px-3 py-2 text-sm text-gray-900">
<div class="flex flex-wrap items-center gap-x-2 gap-y-1"> <div class="flex flex-wrap items-center gap-x-2 gap-y-1">
<span class="whitespace-nowrap">{{ topset.repetitions }} x {{ topset.weight }}kg</span> <span class="whitespace-nowrap">{{ topset.repetitions }} x {{ topset.weight }}kg</span>
<div hx-get="{{ url_for('workout.get_topset_achievements', person_id=person_id, workout_id=topset.workout_id, topset_id=topset.topset_id) }}" <div hx-get="{{ url_for('workout.get_topset_achievements', person_id=person_id, workout_id=topset.workout_id, topset_id=topset.topset_id) }}"
@@ -62,7 +62,7 @@
<tr id="history-load-more-{{ source_topset_id }}-{{ offset + limit }}"> <tr id="history-load-more-{{ source_topset_id }}-{{ offset + limit }}">
<td colspan="2" class="px-3 py-3 text-center"> <td colspan="2" class="px-3 py-3 text-center">
<button <button
class="text-sm text-blue-600 hover:underline dark:text-blue-500 font-medium px-4 py-2 border border-blue-600 rounded" class="text-sm text-blue-600 hover:underline font-medium px-4 py-2 border border-blue-600 rounded"
hx-get="{{ url_for('workout.get_exercise_history', person_id=person_id, exercise_id=exercise_id, limit=limit, offset=offset + limit, source_topset_id=source_topset_id) }}" hx-get="{{ url_for('workout.get_exercise_history', person_id=person_id, exercise_id=exercise_id, limit=limit, offset=offset + limit, source_topset_id=source_topset_id) }}"
hx-target="#history-load-more-{{ source_topset_id }}-{{ offset + limit }}" hx-swap="outerHTML"> hx-target="#history-load-more-{{ source_topset_id }}-{{ offset + limit }}" hx-swap="outerHTML">
Load More Load More
@@ -71,7 +71,7 @@
</tr> </tr>
{% elif topsets|length == 0 and offset == 0 %} {% elif topsets|length == 0 and offset == 0 %}
<tr> <tr>
<td colspan="2" class="px-3 py-4 text-center text-gray-500 dark:text-gray-400"> <td colspan="2" class="px-3 py-4 text-center text-gray-500">
No history found. No history found.
</td> </td>
</tr> </tr>