optimize time selector

This commit is contained in:
Julian Freeman
2026-03-22 22:48:11 -04:00
parent 928589f749
commit 1a10506385

View File

@@ -561,7 +561,7 @@ const handleExport = async () => {
<div class="flex-1 overflow-y-auto no-scrollbar flex flex-col gap-1">
<div class="text-[12px] font-bold text-sec mb-2 sticky top-0 bg-white py-1 text-center border-b border-[#E5E5E7]/30"></div>
<button v-for="m in 60" :key="m"
@click="editingEvent.start_minute = Math.floor(editingEvent.start_minute / 60) * 60 + (m-1)"
@click="editingEvent.start_minute = Math.floor(editingEvent.start_minute / 60) * 60 + (m-1); isStartTimeOpen = false"
class="py-2 text-[11px] rounded-lg transition-colors w-full text-center flex items-center justify-center"
:class="editingEvent.start_minute % 60 === (m-1) ? 'bg-[#007AFF] text-white font-bold' : 'hover:bg-[#F2F2F7] text-main'"
>{{ String(m-1).padStart(2,'0') }}</button>
@@ -593,7 +593,7 @@ const handleExport = async () => {
<div class="flex-1 overflow-y-auto no-scrollbar flex flex-col gap-1 text-center">
<div class="text-[12px] font-bold text-sec mb-2 sticky top-0 bg-white py-1"></div>
<button v-for="m in 60" :key="m"
@click="editingEvent.end_minute = Math.floor(editingEvent.end_minute / 60) * 60 + (m-1)"
@click="editingEvent.end_minute = Math.floor(editingEvent.end_minute / 60) * 60 + (m-1); isEndTimeOpen = false"
class="py-2 text-xs rounded-lg transition-colors w-full text-center"
:class="editingEvent.end_minute % 60 === (m-1) ? 'bg-[#007AFF] text-white font-bold' : 'hover:bg-[#F2F2F7] text-main'"
>{{ String(m-1).padStart(2,'0') }}</button>