- Add custom border, background, and spacing utilities to base template - Enhance message notification styling and layout - Update delete modal button appearance and behavior - Refine comment card component with Tailwind classes and responsive behavior - Adjust sidebar responsiveness for mobile view
42 lines
2.8 KiB
HTML
42 lines
2.8 KiB
HTML
<div class="card-surface hover:border-blue-300 transition-all cursor-grab active:cursor-grabbing"
|
|
id="card-{{ card.pk }}"
|
|
data-card-id="{{ card.pk }}">
|
|
<div class="p-3">
|
|
<div class="flex items-start justify-between gap-2">
|
|
<div class="flex-1 min-w-0">
|
|
<a href="{% url 'card_detail' card.pk %}"
|
|
class="text-sm font-medium text-primary leading-snug hover:text-blue-600 block truncate"
|
|
onclick="event.stopPropagation()">
|
|
{{ card.title }}
|
|
</a>
|
|
<div class="flex items-center gap-2 mt-1.5">
|
|
{% if card.priority == 'urgent' %}
|
|
<span class="text-[10px] px-1.5 py-0.5 rounded font-semibold border bg-red-50 text-red-700 border-red-200">Urgent</span>
|
|
{% elif card.priority == 'high' %}
|
|
<span class="text-[10px] px-1.5 py-0.5 rounded font-semibold border bg-amber-50 text-amber-700 border-amber-200">High</span>
|
|
{% elif card.priority == 'medium' %}
|
|
<span class="text-[10px] px-1.5 py-0.5 rounded font-semibold border bg-blue-50 text-blue-700 border-blue-200">Med</span>
|
|
{% elif card.priority == 'low' %}
|
|
<span class="text-[10px] px-1.5 py-0.5 rounded font-semibold border bg-gray-50 text-gray-600 border-gray-200">Low</span>
|
|
{% endif %}
|
|
{% if card.assignee %}
|
|
<span class="text-[10px] text-muted truncate">{{ card.assignee.username }}</span>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="flex gap-1 flex-shrink-0 no-drag">
|
|
<a href="{% url 'card_edit' card.pk %}"
|
|
class="text-muted hover:text-blue-500 transition-colors"
|
|
onclick="event.stopPropagation()">
|
|
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"/></svg>
|
|
</a>
|
|
<button type="button"
|
|
class="text-muted hover:text-red-500 transition-colors"
|
|
onclick="event.stopPropagation(); openCardDeleteModal('{% url 'card_delete' card.pk %}')">
|
|
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"/></svg>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|