fix: improve formatting and readability in ScheduleModal component
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m19s

This commit is contained in:
2026-02-27 10:43:10 -05:00
parent 1777700cc8
commit f12940dc11

View File

@@ -54,8 +54,14 @@
</button>
</template>
<template v-else>
<span class="default-label">{{ hasDefaultDeadline ? formatDefaultTime : 'Anytime' }}</span>
<button type="button" class="link-btn" @click="exceptions.set(idx, { ...defaultTime })">
<span class="default-label">{{
hasDefaultDeadline ? formatDefaultTime : 'Anytime'
}}</span>
<button
type="button"
class="link-btn"
@click="exceptions.set(idx, { ...defaultTime })"
>
Set different time
</button>
</template>
@@ -247,7 +253,12 @@ const nextOccurrence = computed((): string | null => {
today.setHours(0, 0, 0, 0)
const fmt = (dt: Date) =>
dt.toLocaleDateString('en-US', { weekday: 'short', month: 'short', day: 'numeric', year: 'numeric' })
dt.toLocaleDateString('en-US', {
weekday: 'short',
month: 'short',
day: 'numeric',
year: 'numeric',
})
// Find the first hit date strictly after today
for (let i = 1; i <= 365; i++) {