diff --git a/app/static/css/tailwind.css b/app/static/css/tailwind.css index 6c07246..0af851c 100644 --- a/app/static/css/tailwind.css +++ b/app/static/css/tailwind.css @@ -1111,6 +1111,10 @@ video { padding: 0.25rem; } +.p-0 { + padding: 0px; +} + .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; @@ -1511,6 +1515,12 @@ video { text-decoration-line: underline; } +@media (min-width: 640px) { + .sm\:p-0 { + padding: 0px; + } +} + @media (min-width: 768px) { .md\:w-auto { width: auto; @@ -1523,6 +1533,14 @@ video { .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } + + .md\:p-2 { + padding: 0.5rem; + } + + .md\:p-4 { + padding: 1rem; + } } @media (min-width: 1024px) { diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index ebabd28..b2fbf97 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -228,22 +228,22 @@ -
+
{% set today = date.today() %} {% for i in range(7) %} {% set day = today - timedelta(days=today.weekday() - i) %} -
-
{{ day.strftime('%A, %b %d') }}
+
+
{{ day.strftime('%a, %b %d') }}
{% if day in readings_by_date %} {% for reading in readings_by_date[day]|sort(attribute="timestamp", reverse = True) %} + class="block mt-2 p-0 md:p-2 bg-green-100 rounded-lg shadow hover:bg-green-200 transition">

{{ reading.systolic }}/{{ reading.diastolic }} mmHg

-

{{ reading.heart_rate }} bpm

+

{{ reading.heart_rate }} bpm

-
-
+
Sun
Mon
Tue
@@ -275,7 +275,7 @@
-
+
{% set days_in_month = (current_date.replace(month=current_date.month % 12 + 1, day=1) - timedelta(days=1)).day %} {% set first_weekday = current_date.weekday() %} @@ -288,30 +288,21 @@ {% for day in range(1, days_in_month + 1) %} {% set current_day = current_date.replace(day=day) %} -
+
{{ current_day.day }}
- - {% if current_day in readings_by_date %} - - - - {% endif %} - {% if current_day in readings_by_date %} {% for reading in readings_by_date[current_day]|sort(attribute="timestamp", reverse = True) %} + class="block mt-2 p-0 md:p-2 bg-green-100 rounded-lg shadow hover:bg-green-200 transition">

{{ reading.systolic }}/{{ reading.diastolic }} mmHg

-

{{ reading.heart_rate }} bpm

+

{{ reading.heart_rate }} bpm

-