From 0730c5ecff8fd90a68e57d022f637210327d9076 Mon Sep 17 00:00:00 2001 From: Horilla Date: Tue, 18 Nov 2025 11:26:06 +0530 Subject: [PATCH] [UPDT] EMPLOYEE: Updated the birthday event card to prevent overflow --- .../dashboard/birthdays_container.html | 37 +++++++++++-------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/employee/templates/dashboard/birthdays_container.html b/employee/templates/dashboard/birthdays_container.html index 454db918e..8d31aa2e0 100644 --- a/employee/templates/dashboard/birthdays_container.html +++ b/employee/templates/dashboard/birthdays_container.html @@ -3,27 +3,32 @@
{% for birthday in birthdays %} -
-
- -
-
- {% trans "Birthday" %} - {{birthday.name}} - {{birthday.dob}}, {{birthday.daysUntilBirthday}} - {{birthday.job_position}}{% if birthday.job_position and birthday.department %}, {% endif %}{{birthday.department}} -
+
+
+
+
+ {% trans "Birthday" %} + {{birthday.name|truncatechars:24}} + {{birthday.dob}}, {{birthday.daysUntilBirthday}} + + {{birthday.job_position|truncatechars:24}} + + + {{birthday.department|truncatechars:24}} + +
+
{% endfor %}
    {% for birthday in birthdays %} -
  • -
  • +
  • +
  • {% endfor %}