[UPDT] EMPLOYEE: Updated the birthday event card to prevent overflow

This commit is contained in:
Horilla
2025-11-18 11:26:06 +05:30
parent 1eca690b2c
commit 0730c5ecff

View File

@@ -10,10 +10,15 @@
</div>
<div class="oh-dasboard__event-details">
<span class="oh-dashboard__event-title">{% trans "Birthday" %}</span>
<span class="oh-dashboard__event-main">{{birthday.name}}</span>
<span class="oh-dashboard__event-main"
title="{{birthday.name}}">{{birthday.name|truncatechars:24}}</span>
<span class="oh-dashboard__event-date">{{birthday.dob}}, {{birthday.daysUntilBirthday}}</span>
<span class="oh-dashboard__event-date"
style="font-size:10px;">{{birthday.job_position}}{% if birthday.job_position and birthday.department %}, {% endif %}{{birthday.department}}</span>
<span class="oh-dashboard__event-date" style="font-size:10px;" title="{{birthday.job_position}}">
{{birthday.job_position|truncatechars:24}}
</span>
<span class="oh-dashboard__event-date" style="font-size:10px;" title="{{birthday.department}}"></span>
{{birthday.department|truncatechars:24}}
</span>
</div>
</div>
{% endfor %}