Center topset buttons vertically

This commit is contained in:
Peter Stockings
2023-07-25 21:39:10 +10:00
parent 14a30e7332
commit 6cc20eebd9

View File

@@ -1,5 +1,5 @@
<tr> <tr>
<td class="p-4 whitespace-nowrap text-sm font-semibold text-gray-900"> <td class="p-0 sm:p-4 whitespace-nowrap text-sm font-semibold text-gray-900">
{% if is_edit|default(false, true) == false %} {% if is_edit|default(false, true) == false %}
{{ exercise_name }} {{ exercise_name }}
{% else %} {% else %}
@@ -23,19 +23,20 @@
{% if is_edit|default(false, true) == false %} {% if is_edit|default(false, true) == false %}
{{ repetitions }} x {{ weight }}kg {{ repetitions }} x {{ weight }}kg
{% else %} {% else %}
<div class="flex items-center"> <div class="flex items-center flex-col sm:flex-row">
<input type="number" <input type="number"
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-4 sm:pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
name="repetitions" value="{{ repetitions }}"> name="repetitions" value="{{ repetitions }}">
<p class="px-2">x</p> <p class="px-2">x</p>
<input type="number" <input type="number"
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-4 sm:pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
name="weight" value="{{ weight }}"> name="weight" value="{{ weight }}">
<p class="px-2">kg</p> <p class="px-2">kg</p>
</div> </div>
{% endif %} {% endif %}
</td> </td>
<td class="whitespace-nowrap text-sm font-semibold text-gray-900 flex flex-col sm:flex-row"> <td class="whitespace-nowrap text-sm font-semibold text-gray-900 flex flex-col sm:flex-row table-cell">
<div class="flex flex-col sm:flex-row items-center h-full">
{% if is_edit|default(false, true) == false %} {% if is_edit|default(false, true) == false %}
<button <button
class="inline-flex justify-center p-2 text-blue-600 rounded-full cursor-pointer hover:bg-blue-100 dark:text-blue-500 dark:hover:bg-gray-600" class="inline-flex justify-center p-2 text-blue-600 rounded-full cursor-pointer hover:bg-blue-100 dark:text-blue-500 dark:hover:bg-gray-600"
@@ -82,6 +83,6 @@
<span class="sr-only">Cancel</span> <span class="sr-only">Cancel</span>
</button> </button>
{% endif %} {% endif %}
</div>
</td> </td>
</tr> </tr>