feat: Add align_popup param to calendar input for right alignment

This commit is contained in:
Kerby Martino (aider) committed 2025-05-11 05:59:10 +08:00
1 parent 64f80ebedc
commit 601d4f5117
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@
<div class="absolute z-20 mt-1 w-full sm:w-80 bg-white shadow-lg rounded-base border border-gray-300 p-3
opacity-0 pointer-events-none peer-focus:opacity-100 peer-focus:pointer-events-auto
group-hover:opacity-100 group-hover:pointer-events-auto
transition-opacity duration-150 ease-in-out">
transition-opacity duration-150 ease-in-out {% if include.align_popup == 'right' %}right-0{% else %}left-0{% endif %}">
<div class="flex justify-between items-stretch h-48 relative border-b border-gray-200">
<div class="absolute top-1/2 left-0 right-0 h-px bg-indigo-300 -translate-y-1/2 z-0"></div>
<div class="absolute top-1/2 left-0 right-0 h-8 bg-indigo-50 -translate-y-1/2 z-0 rounded-sm"></div>